QuestionQ63

VerifiedDeployment

A company wants to test its web application more frequently. The company deploys the application by using a separate AWS CloudFormation stack for each environment. The company deploys the same CloudFormation template to each stack as the application progresses through the development lifecycle.

A developer needs to build in notifications for the quality assurance (QA) team. The developer wants the notifications to occur for new deployments in the final preproduction environment.

Which solution will meet these requirements?

Explanation

Amazon EventBridge receives CloudFormation stack status-change events on the default event bus, and a rule can filter precisely on the CloudFormation service and the Amazon Resource Name of the specific pre-production stack, so a Lambda function target is invoked only for that environment's deployments. This gives fine-grained, event-driven filtering by stack ARN and status, which distinguishes the final pre-production stack from the other environments that share the same template. Configuring the stack's NotificationARNs to publish directly to an SNS topic instead sends every stack and resource status-change event with no built-in filtering, which is noisier and less precise than an EventBridge rule scoped to the specific stack. Learn more: Introducing AWS CloudFormation events integration with Amazon EventBridge

Community Discussion

No comments yet. Be the first to start the discussion!