-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codepipeline - Cross-account pass role is not allowed. #28122
Comments
actions: [
new codepipelineActions.CloudFormationCreateUpdateStackAction({
actionName: 'DeployNetworkingStack',
stackName: 'FoundationalNetworking',
templatePath: cdkOutputs.atPath('FoundationStack.template.json'),
adminPermissions: false,
// cfnCapabilities: [cdk.CfnCapabilities.ANONYMOUS_IAM],
role: devCodePipelineRole,
deploymentRole:
}) According to the doc:
I guess you should use the role of the pipeline account instead. |
Hi @pahud - thanks for confirming, codepipeline automatically gives the role of the same account the pipeline is running in ie source (cicd) account. This is from codepipeline for DevDeployStage
|
I need to dive deep into this but probably related to #27484 (comment) |
Closing in favor of #27484 (comment) |
|
Describe the bug
I would really appreciate some help with this issue I am facing. I am looking to enable Cross Account Deployments using CodePipeline Actions. I do not want to use cdk pipelines, I know it does these permission stuff for you but it doesnt fit my project requirements.
Seeing a
Cross-Account pass role is not allowed
when aiming to deploy from Central CICD account to Target Dev Account.It's unusual as the IAM role does have the
iam:PassRole
in the Policy Statement.Expected Behavior
Expected behaviour is deployment successful to target dev account.
Current Behavior
CICD Pipeline Stack in CICD Account
Reproduction Steps
Deploy IAM Stack in one account and CICD Stack in another Account.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.101.1 (build 16ddad1)
Framework Version
No response
Node.js Version
Node.js v20.6.1
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: