QuestionQ23

VerifiedConfiguration Management and IaC

A DevOps engineer uses an AWS CodePipeline pipeline. The pipeline contains a build action and a deploy action for a single-page web application delivered to an Amazon S3 bucket. Amazon CloudFront serves the web application. The build action produces an artifact for the web application.

The DevOps engineer created an AWS CloudFormation template that defines the S3 bucket and configures the bucket to host the application. The DevOps engineer configured a CloudFormation deploy action before the S3 action. The CloudFormation deploy action creates the S3 bucket. The DevOps engineer must configure the S3 deploy action to use the S3 bucket from the CloudFormation template.

Which combination of steps meets these requirements?

Choose two
Explanation

AWS CloudFormation deploy actions generate CodePipeline variables from the stack template's Outputs values when the action is assigned a namespace. An output named BucketName under the StackVariables namespace can be consumed by the later S3 deploy action as #{StackVariables.BucketName}. The S3 deploy action accepts one input artifact, so the build artifact is its input while the resolved CloudFormation output supplies the destination bucket name.

Learn more

Community Discussion

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