A developer is configuring a release pipeline in AWS CodePipeline. The developer wants to pause the pipeline before the deployment stage to allow a team lead to review the changes, and wants the team lead to receive an email notification when the pipeline is paused. Which configuration should the developer use to meet these requirements?
- Add a Manual Approval action to the pipeline before the deployment stage, and configure it with an Amazon Simple Notification Service (Amazon SNS) topic ARN.Answer
- BAdd a Manual Approval action to the pipeline before the deployment stage, and configure it to store approval decision tokens in an AWS Systems Manager Parameter Store parameter.
- CModify the CodePipeline service role's IAM trust policy to allow the team lead's IAM user to assume the role and execute the deployment stage.
- DConfigure the deployment stage with an AWS CodeDeploy action, and use the ApplicationStart lifecycle hook to send notifications and pause the deployment.
Answer
Add a Manual Approval action to the pipeline before the deployment stage, and configure it with an Amazon Simple Notification Service (Amazon SNS) topic ARN.
The correct option adds a Manual Approval action directly into the pipeline stage before the deployment stage. By associating the action with an Amazon SNS topic ARN, CodePipeline automatically sends a notification to the subscribed email address of the team lead when the action runs, pausing the pipeline until the approval is granted or rejected.
Step-by-Step Solution
Key Concept
AWS CodePipeline Manual Approval Actions
Estimated Time:45s