-
Notifications
You must be signed in to change notification settings - Fork 4k
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: CloudFormationCreateUpdateStackAction for cross-account deployment #27484
Comments
Could you more clearly describe how the |
@peterwoodworth DevAccount stack is deployed and it was CDK bootstrapped, however I did not add the --trust or --trust-for-lookup options. I will do this now and get back to you |
@peterwoodworth - still having the same error, after adding the --trust to the bootstrap for the DevAccount.
|
This could be a little bit confusing but I think the general idea is to clarify the 3 roles
I guess you should specify Now, if you look at the synthesized template as below, your Let me know if it works for you. It's a little bit confusing to be honest. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Hey @pahud @peterwoodworth I've gone through the code and have done the required steps, ie validated permissions from my dev deployment role allows my pipeline role in cicd source account to be assumed. So pipeline role has permissions to assume dev deployment role from target account and vice versa. However, I am still getting the same error. Ive bootstrapped too as a extra step but still no luck.
` Any help would be appreciated |
I will try to provide a working sample but before that, can you share the synthesized cloudformation template of the "Actions" as the screenshot above? |
Hi @soleyman-devops I will try to write a small sample for this. Hopefully to clarify some details. |
@soleyman-devops Interesting. If it says this role cannot be found then it technically does not exist. Are you able to
Are you able to reproduce from my provided code snippets above and see if it works for you? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Describe the bug
Resource handler returned message: "The role with name CrossAccountDevDeploy cannot be found"
I'm creating cross account cicd, i've deployed the
CrossAccountDevDeploy
role in my Dev Account, and created a trusted entity in my CICD account to assume this role, and passed the CICD Account ID in my Dev Role.However when I use the role in my dev deploy stage with codepipeline it cannot find the CrossAccountDevDeploy
CICD Pipeline
dev cross account role
The text was updated successfully, but these errors were encountered: