[{"data":1,"prerenderedAt":417},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-devops-engineer-professional\u002Flessons\u002Faws-codepipeline-cross-account-action-execution-dop-c02":185},[4,22,36,48,60,72,84,97,109,120,130,141,154,163,175],{"id":5,"slug":6,"description":7,"questionCount":8,"isActive":9,"datePublicModified":10,"difficulty":11,"examVersion":18},22,"aws-certified-solutions-architect-professional-sap-c03","Prepare for the AWS Certified Solutions Architect - Professional (SAP-C03) exam with realistic practice questions on architecture, security, cost, resilience and automation, with detailed explanations.",767,true,"2026-11-15T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},1,"AWS Certified Solutions Architect - Professional","SAP-C02","aws-certified-solutions-architect-professional","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-professionalsap-c02\u002Fcovers\u002Faws-SAP-C02.png","advanced",{"slug":6,"code":19,"dateBetaStart":20,"dateReleased":21,"pageSlug":15},"SAP-C03",null,"2026-11-17",{"id":23,"slug":24,"description":25,"questionCount":26,"isActive":9,"datePublicModified":27,"difficulty":28,"examVersion":34},5,"aws-certified-cloud-practitioner-clf-c02","Master your AWS Certified Cloud Practitioner exam with our Practice Exam Simulator. Prepare effectively and assess your readiness with realistic practice exams designed to mirror the most popular official AWS exam.",937,"2026-10-30T00:00:00.000Z",{"providerId":12,"title":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},"AWS Certified Cloud Practitioner","CLF-C02","aws-certified-cloud-practitioner","\u002Fimages\u002Fdifficulties\u002Faws-certified-cloud-practitionerclf-c02\u002Fcovers\u002Faws-CLF-C02.png","foundational",{"slug":24,"code":30,"dateBetaStart":20,"dateReleased":35,"pageSlug":31},"2023-09-19",{"id":37,"slug":38,"description":39,"questionCount":40,"isActive":9,"datePublicModified":27,"difficulty":41,"examVersion":46},8,"aws-certified-devops-engineer-professional-dop-c02","Boost your readiness for the AWS Certified DevOps Engineer - Professional (DOP-C02) exam with our practice exam simulator. Featuring realistic questions and detailed explanations, it helps you identify knowledge gaps and improve your skills.",1040,{"providerId":12,"title":42,"subtitle":43,"slug":44,"coverImageUrl":45,"level":17},"AWS Certified DevOps Engineer - Professional","DOP-C02","aws-certified-devops-engineer-professional","",{"slug":38,"code":43,"dateBetaStart":20,"dateReleased":47,"pageSlug":44},"2023-03-07",{"id":49,"slug":50,"description":51,"questionCount":52,"isActive":9,"datePublicModified":27,"difficulty":53,"examVersion":57},11,"aws-certified-ai-practitioner-aif-c01","Prepare for the AWS Certified AI Practitioner exam with our practice exam simulator. Realistic questions on AI, machine learning and generative AI fundamentals, with detailed explanations, help you find your knowledge gaps and assess your readiness.",928,{"providerId":12,"title":54,"subtitle":55,"slug":56,"coverImageUrl":45,"level":33},"AWS Certified AI Practitioner","AIF-C01","aws-certified-ai-practitioner",{"slug":50,"code":55,"dateBetaStart":58,"dateReleased":59,"pageSlug":56},"2024-08-13","2024-10-22",{"id":12,"slug":61,"description":62,"questionCount":63,"isActive":9,"datePublicModified":27,"difficulty":64,"examVersion":70},"aws-certified-solutions-architect-associate-saa-c03","Unlock your potential with the AWS Certified Solutions Architect - Associate Practice Exam Simulator. This comprehensive tool is designed to prepare you thoroughly and assess your readiness for the most sought-after AWS associate certification.",1203,{"providerId":12,"title":65,"subtitle":66,"slug":67,"coverImageUrl":68,"level":69},"AWS Certified Solutions Architect - Associate","SAA-C03","aws-certified-solutions-architect-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-associatesaa-c03\u002Fcovers\u002Faws-SAA-C03.png","associate",{"slug":61,"code":66,"dateBetaStart":20,"dateReleased":71,"pageSlug":67},"2022-08-30",{"id":73,"slug":74,"description":75,"questionCount":76,"isActive":9,"datePublicModified":27,"difficulty":77,"examVersion":81},9,"aws-certified-data-engineer-associate-dea-c01","Prepare for your AWS Certified Data Engineer - Associate exam with our practice exam simulator. Featuring real exam scenarios, detailed explanations, and instant feedback to boost your confidence and success rate.",891,{"providerId":12,"title":78,"subtitle":79,"slug":80,"coverImageUrl":45,"level":69},"AWS Certified Data Engineer - Associate","DEA-C01","aws-certified-data-engineer-associate",{"slug":74,"code":79,"dateBetaStart":82,"dateReleased":83,"pageSlug":80},"2023-11-27","2024-03-12",{"id":85,"slug":86,"description":87,"questionCount":88,"isActive":9,"datePublicModified":89,"difficulty":90,"examVersion":94},17,"aws-certified-generative-ai-developer-professional-aip-c01","Get ready for the AWS Certified Generative AI Developer - Professional exam with our practice exam simulator. Realistic scenario-based questions with detailed explanations help you assess your readiness to build generative AI solutions on AWS.",982,"2026-10-29T00:00:00.000Z",{"providerId":12,"title":91,"subtitle":92,"slug":93,"coverImageUrl":45,"level":17},"AWS Certified Generative AI Developer - Professional","AIP-C01","aws-certified-generative-ai-developer-professional",{"slug":86,"code":92,"dateBetaStart":95,"dateReleased":96,"pageSlug":93},"2025-11-28","2026-03-17",{"id":98,"slug":99,"description":100,"questionCount":101,"isActive":9,"datePublicModified":89,"difficulty":102,"examVersion":107},13,"aws-certified-security-specialty-scs-c03","Advance your career in cloud security with the AWS Certified Security - Specialty (SCS-C03) Exam Simulator. Realistic, scenario-based practice exams mirror the official exam, with detailed explanations to close your knowledge gaps.",864,{"providerId":12,"title":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},"AWS Certified Security - Specialty","SCS-C03","aws-certified-security-specialty","\u002Fimages\u002Fdifficulties\u002Faws-certified-security-specialtyscs-c02\u002Fcovers\u002Faws_SCS_c02.png",{"slug":99,"code":104,"dateBetaStart":20,"dateReleased":108,"pageSlug":105},"2025-12-01",{"id":110,"slug":111,"description":112,"questionCount":113,"isActive":9,"datePublicModified":89,"difficulty":114,"examVersion":118},19,"aws-certified-machine-learning-engineer-associate-mla-c02","Prepare for the AWS Certified Machine Learning Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you find your knowledge gaps and assess your readiness to build and run ML workloads on AWS.",861,{"providerId":12,"title":115,"subtitle":116,"slug":117,"coverImageUrl":45,"level":69},"AWS Certified Machine Learning Engineer - Associate","MLA-C02","aws-certified-machine-learning-engineer-associate",{"slug":111,"code":116,"dateBetaStart":119,"dateReleased":20,"pageSlug":117},"2026-09-29",{"id":121,"slug":122,"description":123,"questionCount":124,"isActive":9,"datePublicModified":89,"difficulty":125,"examVersion":129},15,"aws-certified-ai-business-strategist-aib-c01","Prepare for the AWS Certified AI Business Strategist exam with our practice exam simulator. Realistic, scenario-based questions with detailed explanations help you assess your readiness to lead AI adoption on AWS and close your knowledge gaps.",848,{"providerId":12,"title":126,"subtitle":127,"slug":128,"coverImageUrl":45,"level":33},"AWS Certified AI Business Strategist","AIB-C01","aws-certified-ai-business-strategist",{"slug":122,"code":127,"dateBetaStart":119,"dateReleased":20,"pageSlug":128},{"id":131,"slug":132,"description":133,"questionCount":134,"isActive":9,"datePublicModified":89,"difficulty":135,"examVersion":139},21,"aws-certified-cloudops-engineer-associate-soa-c03","Prepare for the AWS Certified CloudOps Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you assess your readiness to deploy, operate and troubleshoot workloads on AWS.",862,{"providerId":12,"title":136,"subtitle":137,"slug":138,"coverImageUrl":45,"level":69},"AWS Certified CloudOps Engineer - Associate","SOA-C03","aws-certified-cloudops-engineer-associate",{"slug":132,"code":137,"dateBetaStart":20,"dateReleased":140,"pageSlug":138},"2025-09-30",{"id":142,"slug":143,"description":144,"questionCount":145,"isActive":9,"datePublicModified":146,"difficulty":147,"examVersion":151},10,"aws-certified-advanced-networking-specialty-ans-c01","The AWS Certified Advanced Networking - Specialty practice exam simulates the real test, offering scenario-based questions that assess your ability to design, implement, and troubleshoot complex AWS networking solutions. ",681,"2024-11-13T00:00:00.000Z",{"providerId":12,"title":148,"subtitle":149,"slug":150,"coverImageUrl":45,"level":17},"AWS Certified Advanced Networking - Specialty","ANS-C01","aws-certified-advanced-networking-specialty",{"slug":143,"code":149,"dateBetaStart":152,"dateReleased":153,"pageSlug":150},"2022-01-01","2022-07-12",{"id":155,"slug":156,"description":157,"questionCount":158,"isActive":9,"datePublicModified":159,"difficulty":160,"examVersion":161},6,"aws-certified-solutions-architect-professional-sap-c02","Elevate your career with the AWS Certified Solutions Architect - Professional Exam Simulator. Get ready to ace the most popular Professional AWS exam with our realistic practice exams. Assess your readiness, boost your confidence, and ensure your success.",789,"2024-06-06T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},{"slug":156,"code":14,"dateBetaStart":20,"dateReleased":162,"pageSlug":20},"2022-11-15",{"id":164,"slug":165,"description":166,"questionCount":167,"isActive":9,"datePublicModified":159,"difficulty":168,"examVersion":173},4,"aws-certified-developer-associate-dva-c02","Unlock your potential as a software developer with the AWS Certified Developer - Associate Exam Simulator! Prepare thoroughly with realistic practice exams designed to mirror the official exam.",399,{"providerId":12,"title":169,"subtitle":170,"slug":171,"coverImageUrl":172,"level":69},"AWS Certified Developer - Associate","DVA-C02","aws-certified-developer-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-developer-associatedva-c02\u002Fcovers\u002Faws-DVA-C02.png",{"slug":165,"code":170,"dateBetaStart":20,"dateReleased":174,"pageSlug":171},"2023-02-28",{"id":176,"slug":177,"description":178,"questionCount":179,"isActive":9,"datePublicModified":159,"difficulty":180,"examVersion":181},7,"aws-certified-security-specialty-scs-c02","Advance your career in cloud cybersecurity with the AWS Certified Security - Specialty Exam Simulator! Tailored for professionals, this tool offers realistic practice exams to mirror the official exam.",5431,{"providerId":12,"title":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},{"slug":177,"code":182,"dateBetaStart":20,"dateReleased":183,"pageSlug":20},"SCS-C02","2023-07-11",[],{"slug":186,"title":187,"focus":188,"level":17,"components":189,"diagrams":237,"steps":278,"dateModified":412,"course":413,"nextLesson":414},"aws-codepipeline-cross-account-action-execution-dop-c02","AWS CodePipeline: cross-account action execution","How pipeline service roles, target-account action roles, and encrypted artifact access support deployment within one account or across account boundaries.",[190,196,200,204,208,212,216,220,224,228,232],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-elastic-container-registry-(amazon-ecr)","service","Amazon Elastic Container Registry (Amazon ECR)","\u002Fimages\u002Fprovider-services\u002Famazon-elastic-container-registry-(amazon-ecr)\u002Fcovers\u002FArch_Amazon-Elastic-Container-Registry_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"provider":195},"aws-cloudhsm","AWS CloudHSM","\u002Fimages\u002Fprovider-services\u002Faws-cloudhsm\u002Fcovers\u002FArch_AWS-CloudHSM_64.png",{"key":201,"kind":192,"name":202,"icon":203,"provider":195},"aws-codeartifact","AWS CodeArtifact","\u002Fimages\u002Fprovider-services\u002Faws-codeartifact\u002Fcovers\u002FArch_AWS-CodeArtifact_64.png",{"key":205,"kind":192,"name":206,"icon":207,"provider":195},"aws-codedeploy","AWS CodeDeploy","\u002Fimages\u002Fprovider-services\u002Faws-codedeploy\u002Fcovers\u002FArch_AWS-CodeDeploy_64.png",{"key":209,"kind":192,"name":210,"icon":211,"provider":195},"aws-codepipeline","AWS CodePipeline","\u002Fimages\u002Fprovider-services\u002Faws-codepipeline\u002Fcovers\u002FArch_AWS-CodePipeline_64.png",{"key":213,"kind":192,"name":214,"icon":215,"provider":195},"aws-iam-identity-center-(aws-single-sign-on)","AWS IAM Identity Center (AWS Single Sign-On)","\u002Fimages\u002Fprovider-services\u002Faws-iam-identity-center-(aws-single-sign-on)\u002Fcovers\u002FArch_AWS-IAM-Identity-Center_64.png",{"key":217,"kind":192,"name":218,"icon":219,"provider":195},"aws-identity-and-access-management-(iam)","AWS Identity and Access Management (IAM)","\u002Fimages\u002Fprovider-services\u002Faws-identity-and-access-management-(iam)\u002Fcovers\u002FArch_AWS-Identity-and-Access-Management_64.png",{"key":221,"kind":192,"name":222,"icon":223,"provider":195},"aws-key-management-service-(aws-kms)","AWS Key Management Service (AWS KMS)","\u002Fimages\u002Fprovider-services\u002Faws-key-management-service-(aws-kms)\u002Fcovers\u002FArch_AWS-Key-Management-Service_64.png",{"key":225,"kind":192,"name":226,"icon":227,"provider":195},"aws-secrets-manager","AWS Secrets Manager","\u002Fimages\u002Fprovider-services\u002Faws-secrets-manager\u002Fcovers\u002FArch_AWS-Secrets-Manager_64.png",{"key":229,"kind":192,"name":230,"icon":231,"provider":195},"aws-security-token-service-(aws-sts)","AWS Security Token Service (AWS STS)","\u002Fimages\u002Fprovider-services\u002Faws-security-token-service-(aws-sts)\u002Fcovers\u002FRes_AWS-Identity-Access-Management_AWS-STS-Alternate_48.png",{"key":233,"kind":234,"name":235,"icon":236,"provider":195},"amazon-s3-bucket","part","Amazon S3 bucket","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FRes_Amazon-Simple-Storage-Service_Bucket_48.png",[238],{"key":239,"cards":240,"groups":261,"lines":266},"cross-account-action",[241,245,248,252,255,258],{"key":242,"component":209,"label":243,"group":244},"pipeline","Pipeline","account-a",{"key":246,"component":217,"label":247,"group":244},"pipeline-role","Pipeline service role",{"key":249,"component":217,"label":250,"group":251},"action-role","Target-account action role","account-b",{"key":253,"component":233,"label":254,"group":244},"artifacts","Pipeline artifact store",{"key":256,"component":221,"label":257,"group":244},"artifact-key","Customer managed artifact key",{"key":259,"component":205,"label":260,"group":251},"deployment","CodeDeploy deployment API",[262,264],{"key":244,"label":263},"Account A — pipeline",{"key":251,"label":265},"Account B — deployment",[267,269,270,272,274,276],{"from":242,"to":246,"label":268},"AssumeRole",{"from":246,"to":249,"label":268},{"from":246,"to":253,"label":271},"Artifact I\u002FO",{"from":249,"to":253,"label":273},"GetObject",{"from":253,"to":256,"label":275},"KMS requests",{"from":249,"to":259,"label":277},"Deployment API",[279,283,300,353,375,378,386,389,399],{"kind":280,"title":281,"body":282},"explanation","Two roles, two permission boundaries","\u003Cp>The \u003Cstrong>pipeline service role\u003C\u002Fstrong> is the identity CodePipeline assumes to orchestrate a pipeline. Its trust policy permits the service principal \u003Ccode>codepipeline.amazonaws.com\u003C\u002Fcode> to assume it. Its permissions authorize pipeline operations, including artifact access and calls to action providers.\u003C\u002Fp>\u003Cp>An action can specify its own \u003Cstrong>action role\u003C\u002Fstrong> through the action's \u003Ccode>roleArn\u003C\u002Fcode>. For cross-account deployment, that role belongs to the target account. The pipeline service role needs \u003Ccode>sts:AssumeRole\u003C\u002Fcode> permission on its ARN, and the target role's trust policy must trust the pipeline service role. The target role's permissions then authorize the deployment calls; trust alone grants no deployment permissions.\u003C\u002Fp>\u003Cp>Within one account, supported actions can use the pipeline service role when no action role is configured. A separate same-account action role can still isolate permissions. An IAM role defines trust and permissions; \u003Cstrong>AWS STS\u003C\u002Fstrong> issues the temporary credentials when it is assumed. IAM Identity Center provides workforce access, not the pipeline's action-role definition.\u003C\u002Fp>",{"kind":284,"title":285,"exercise":286},"exercise","Separate the two roles",{"type":287,"question":288,"groups":289,"statements":290},"versus","Sort each responsibility into the role that owns it in this cross-account arrangement.",[247,250],[291,294,296,298],{"text":292,"group":293},"Trusts codepipeline.amazonaws.com so the service can assume it.",0,{"text":295,"group":293},"Has permission to call sts:AssumeRole on the target role ARN.",{"text":297,"group":12},"Trusts the pipeline service role as its cross-account caller.",{"text":299,"group":12},"Contains the target-account deployment API permissions used by the action.",{"kind":280,"title":301,"body":302,"diagram":239,"walkthrough":303,"table":336},"Follow identity and encrypted artifact access","\u003Cp>This diagram follows a deployment action from \u003Cstrong>Account A\u003C\u002Fstrong> into \u003Cstrong>Account B\u003C\u002Fstrong>, while artifacts remain in A. Role arrows represent the identity-assumption chain; outgoing role arrows represent calls made under that role's credentials. The boundary stops at deployment API invocation, not the downstream workload's artifact retrieval.\u003C\u002Fp>\u003Cp>Cross-account encrypted artifact access requires both \u003Cstrong>S3 authorization\u003C\u002Fstrong> and \u003Cstrong>KMS authorization\u003C\u002Fstrong>. Use a customer managed symmetric KMS key for the artifact store and identify it by its key ARN for cross-account use. The AWS managed \u003Ccode>aws\u002Fs3\u003C\u002Fcode> key cannot provide this cross-account sharing. S3 makes KMS requests on behalf of the accessing principal, so an allowed S3 read does not bypass KMS authorization.\u003C\u002Fp>\u003Cp>The artifact store is an \u003Cstrong>S3 bucket\u003C\u002Fstrong>, not a package or container registry. CodeArtifact stores packages, and ECR stores container images. KMS supplies the SSE-KMS cryptographic operations: Secrets Manager stores secrets, while CloudHSM alone does not replace the KMS API used by SSE-KMS.\u003C\u002Fp>",[304,307,312,317,323,328,333],{"text":305,"cards":306},"The pipeline lives in Account A and coordinates the action.",[242],{"text":308,"cards":309,"lines":310},"CodePipeline assumes the pipeline service role in A. This role supplies the pipeline's orchestration permissions.",[246],[311],{"from":242,"to":246},{"text":313,"cards":314,"lines":315},"The pipeline service role assumes the action role in B. Caller permission and the target role's trust policy must both allow this transition.",[249],[316],{"from":246,"to":249},{"text":318,"cards":319,"lines":320},"The pipeline service role accesses its artifact store in A. The action role in B also receives the S3 permissions needed to read its input artifacts from that store.",[253],[321,322],{"from":246,"to":253},{"from":249,"to":253},{"text":324,"cards":325,"lines":326},"S3 uses the customer managed key in A for SSE-KMS operations. KMS must authorize the relevant caller, including the role in B for decrypting its input.",[256],[327],{"from":253,"to":256},{"text":329,"cards":330,"lines":331},"Using the action role's credentials, the action invokes the CodeDeploy API in B. These deployment permissions are separate from artifact-read permissions.",[259],[332],{"from":249,"to":259},{"text":334,"cards":335},"The complete path separates orchestration identity, target-account authority, and access to encrypted pipeline artifacts.",[],{"columns":337,"rows":341},[338,339,340],"Diagram responsibility","Required component","Not a substitute",[342,346,349],[343,344,345],"Action identity","IAM role","STS or Identity Center",[254,347,348],"S3 bucket","CodeArtifact or ECR",[350,351,352],"SSE-KMS key operations","KMS key","Secrets Manager or CloudHSM alone",{"kind":284,"title":354,"exercise":355},"Restore the identity, store, and key",{"type":356,"diagram":239,"question":357,"hidden":358,"tray":359},"palette","Restore the three components while preserving the role-assumption chain and SSE-KMS artifact access.",[249,253,256],[360,361,362,363,365,367,369,371,373],{"component":217},{"component":233},{"component":221},{"component":229,"reason":364},"STS issues temporary credentials; it is not the target role that defines trust and deployment permissions.",{"component":213,"reason":366},"Identity Center provides workforce access, not the action's IAM role definition.",{"component":201,"reason":368},"CodeArtifact stores packages; CodePipeline uses an S3 bucket as this artifact store.",{"component":191,"reason":370},"ECR stores container images, not the pipeline artifact objects shown here.",{"component":225,"reason":372},"Secrets Manager stores secrets; it does not provide the SSE-KMS key operations for this bucket.",{"component":197,"reason":374},"CloudHSM alone does not provide the KMS API that S3 uses for SSE-KMS.",{"kind":280,"title":376,"body":377},"Authorize each boundary independently","\u003Cp>Keep the \u003Cstrong>target action role in Account B\u003C\u002Fstrong> and set the action's \u003Ccode>roleArn\u003C\u002Fcode> to that role. Restrict its trust policy to the intended pipeline service role in A, and restrict A's \u003Ccode>sts:AssumeRole\u003C\u002Fcode> permission to the intended role in B. \u003Ccode>iam:PassRole\u003C\u002Fcode> is not a substitute: it authorizes passing a role to an AWS service, not assuming that role.\u003C\u002Fp>\u003Cp>For B's role to read A's artifacts, allow the required S3 reads in \u003Cstrong>both the role's identity policy and A's bucket policy\u003C\u002Fstrong>. Scope access to the artifact bucket and relevant object paths. Separately, allow the role to use \u003Ccode>kms:Decrypt\u003C\u002Fcode> in its identity policy and authorize that external role through A's key policy. The pipeline role also needs the S3 and KMS permissions required for its own artifact operations.\u003C\u002Fp>\u003Cp>These are independent checks. A valid trust policy does not grant S3 reads; a bucket policy does not grant decryption; deployment API permission grants neither. Applicable \u003Cstrong>explicit denies\u003C\u002Fstrong>, permissions boundaries, session policies, and organization policies can still restrict an otherwise allowed request.\u003C\u002Fp>",{"kind":284,"title":379,"exercise":380},"Keep the action identity in its owning account",{"type":381,"diagram":239,"requirement":382,"change":383,"hint":384,"explanation":385},"flaw","The deployment action must execute using an Account B-owned action role that trusts A's pipeline service role; the artifact bucket and key remain in A.",{"card":249,"group":244},"The pipeline service role stays with the pipeline. The role named by this cross-account deployment action belongs to the target account.","The action role belongs in Account B. Its trust policy accepts A's pipeline service role, and its permissions authorize B's deployment calls plus the required cross-account S3 and KMS access back into A.",{"kind":280,"title":387,"body":388},"Bound the deployment and artifact permissions","\u003Cp>Grant the \u003Cstrong>action role\u003C\u002Fstrong> only the provider API operations and resources needed for its action, including status checks where required. A deployment provider can have additional service or execution roles. Those roles perform downstream work and do not replace either the pipeline service role or the action role. The diagram deliberately ends at the CodeDeploy API boundary.\u003C\u002Fp>\u003Cp>For this pipeline-owned artifact store, configure the \u003Cstrong>customer managed key ARN\u003C\u002Fstrong> in the artifact store's encryption settings and keep the key in the artifact bucket's Region. A key alias is not a reliable cross-account identifier because aliases resolve within the requesting account. Adding an action role does not automatically update the bucket policy or key policy.\u003C\u002Fp>\u003Cp>Artifact permissions also do not remove \u003Cstrong>CodePipeline's artifact-sharing limits\u003C\u002Fstrong>. An action can consume an artifact when the action is in the pipeline account, when the artifact was created in the action's account, or when it was produced by an action in the pipeline account. In particular, an artifact produced in target account B cannot be passed directly to another target account C when neither is the pipeline account, merely by adding S3 and KMS grants.\u003C\u002Fp>",{"kind":284,"title":390,"exercise":391},"Rebuild the cross-account execution model",{"type":392,"diagram":239,"question":393,"decoys":394},"build","Reconstruct the account placement and labeled authorization relationships for this pipeline-owned encrypted artifact store and target-account CodeDeploy action, stopping at deployment API invocation.",[395,397],{"component":201,"reason":396},"CodeArtifact stores packages; it cannot replace the S3 bucket used as this pipeline's artifact store.",{"component":225,"reason":398},"Secrets Manager stores secrets; it cannot replace the KMS key used for the artifact bucket's SSE-KMS operations.",{"kind":280,"title":400,"body":401,"takeaways":402},"What to remember","\u003Cp>Cross-account deployment works only when \u003Cstrong>role assumption\u003C\u002Fstrong>, \u003Cstrong>deployment authority\u003C\u002Fstrong>, and \u003Cstrong>encrypted artifact access\u003C\u002Fstrong> are each authorized independently.\u003C\u002Fp>",[403,406,409],{"title":404,"text":405},"Follow the identity chain","CodePipeline assumes its service role; that role assumes the target-account action role. Cross-account assumption requires caller permission and target-role trust.",{"title":407,"text":408},"Separate S3 and KMS","Cross-account artifact reads require S3 permissions and KMS decryption authorization. Use a customer managed artifact key and its key ARN, not the AWS managed aws\u002Fs3 key.",{"title":410,"text":411},"Respect execution boundaries","The action role's deployment permissions do not grant artifact access or replace downstream service roles. IAM grants also do not override CodePipeline's artifact-sharing limits.","2026-10-29T23:39:10.574Z",{"pageSlug":44,"code":43,"certification":42,"certificationSlug":44},{"slug":415,"title":416},"separation-of-duties-independent-authority-in-deployment-pipelines-dop-c02","Separation of Duties: independent authority in deployment pipelines",1796130153760]