Let’s Get Certified
Module 02 / 20 · Delivery automation

Promote a revision across accounts

Trace a commit through build, approval and deployment without losing its identity.

Promote a revision across accounts

A pipeline execution should carry a source revision, the digest of its output and the destination account and Region. Release the tested bytes to each stage. If production builds the source again, an upstream package can change even when the Git commit is identical.

For cross-account promotion, identify the pipeline role, the target deployment role, the artifact bucket and its encryption key. The target must trust the intended caller and be authorized to read and decrypt the artifact. Use a distinct approval for the exact revision entering production. Retrieve credentials at runtime using the build role and keep them out of build output.

Worked case 1

Two successful builds of one commit produced different binaries. Which one should the release use?

Check your reasoning

Identify the build whose digest passed testing. Promote that exact artifact and pin changing build dependencies before the next release.

Worked case 2

The target role can read the artifact object but the deployment fails with a decrypt error. What is missing?

Check your reasoning

Trace the target role’s access to the customer-managed KMS key as well as bucket access. Confirm the request uses the intended artifact and Region.

Cross-account pipelines

Official DOP-C02 skills for this topic

Related lesson in AWS Certified Developer – Associate. Package a reproducible release.

Practice with the recording

A stage in a second account sees the pipeline execution but cannot find its input in the destination Region. What would you inspect before changing IAM?

Check your reasoning

Trace the artifact for that Region from the producing action to the consuming action. Check the regional artifact store and object first. Then test the deployment role’s bucket and key access against that object. Additional permissions cannot supply a missing artifact.

sthithapragna · DOP-C02 full course · 1:53:18

Knowledge check

Promote a revision across accounts quiz

Answer 3 questions. Check each answer for an explanation.