Two roles, two permission boundaries
How pipeline service roles, target-account action roles, and encrypted artifact access support deployment within one account or across account boundaries. · advanced
The pipeline service role is the identity CodePipeline assumes to orchestrate a pipeline. Its trust policy permits the service principal codepipeline.amazonaws.com to assume it. Its permissions authorize pipeline operations, including artifact access and calls to action providers.
An action can specify its own action role through the action's roleArn. For cross-account deployment, that role belongs to the target account. The pipeline service role needs sts:AssumeRole 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.
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; AWS STS issues the temporary credentials when it is assumed. IAM Identity Center provides workforce access, not the pipeline's action-role definition.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.