Soru

Zorluk: KolayAWS CodePipeline

A developer is managing a release pipeline in AWS CodePipeline that contains Source, Build, and Deploy stages. The developer wants to temporarily prevent new builds from automatically entering the Deploy stage while a production issue is being investigated, without stopping or deleting the pipeline. Which action should the developer take to meet this requirement?

  1. A
    Modify the trust policy of the CodePipeline service role to deny the permissions required to run the Deploy stage.
  2. Disable the transition between the Build stage and the Deploy stage in CodePipeline.Cevap
  3. C
    Store a configuration parameter in AWS Systems Manager Parameter Store to control the Deploy stage status.
  4. D
    Modify the KMS key policy for the artifact S3 bucket to deny decryption rights to the Deploy stage action.

Cevap

Disable the transition between the Build stage and the Deploy stage in CodePipeline.
Disabling the transition between stages in AWS CodePipeline prevents executions from moving from the upstream stage (Build) to the downstream stage (Deploy). This is the standard, built-in feature designed specifically for this purpose, allowing executions to compile and build while holding them before the deploy phase.

Adım Adım Çözüm

1
Identify the requirement to temporarily halt the flow of executions into a specific stage without disabling the upstream stages or deleting the pipeline.
Recognized that the pipeline transition between the Build and Deploy stages needs to be controlled.
This isolates the Deploy stage from new incoming changes while allowing build testing to continue.
2
Evaluate AWS CodePipeline features for controlling pipeline flow and execution transitions between stages.
Identified that disabling stage transitions is the built-in mechanism for this use case.
Stage transitions can be enabled or disabled dynamically without changing permissions or configuration store parameters.
3
Select the option to disable the transition between the Build stage and the Deploy stage, which cleanly pauses executions at the boundary.
Correctly determined the operational action to resolve the scenario.
This is the most efficient and native method provided by CodePipeline.

Anahtar Kavram

AWS CodePipeline Stage Transitions
Bu soruyu puanla