-
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: Deploy EKS via codepipeline reported a S3 access denied error #14944
Comments
Hey @uxth, thanks for opening the issue. Can you please show your code creating the Pipeline? Thanks, |
Hello @skinny85 , it is in my github repo, named cdkpipeline. Thanks |
Great, can I see it? 🙂 |
definitely |
Can you send me the link to the code then please? |
https://github.com/uxth/cdkpipeline sorry, I thought you were able to see |
Did you perform the correct bootstrapping of the account you are deploying to, as described here? https://docs.aws.amazon.com/cdk/api/latest/docs/pipelines-readme.html#cdk-environment-bootstrapping |
do you mean in the code or in my terminal? I did bootstrap in my terminal |
I see it's a Nested Stack. Maybe that's the problem? Perhaps Nested Stack support has some bug in CDK Pipelines? I'm leaving this one for @rix0rrr and @otaviomacedo to diagnose, since it's a CDK Pipelines issue (and not just CodePipeline, which I initially thought). |
any updates?@otaviomacedo , @rix0rrr |
@skinny85 is there any other people who can answer this question? |
Hi @uxth, @otaviomacedo is trying to get to the bottom of this as we speak. Our current suspicion is nested stacks, but the issue might be more complicated. |
Hi, @uxth. The problem here is that your pipeline is not self-mutating. Because of that, the "Asset" stage of the pipeline get out of sync with the main stack template, which references a nested stack template that doesn't exist. We are considering changing this flow to be less reliant on self mutation. But for now what you can do is change it to |
hi @otaviomacedo , the reason I turned off the self-mutating option is because with it on the source code could not be downloaded from github. |
it is working, thank you for pointing this out. |
|
Hello
I have created a pipeline via cdk scripts, which deploys a VPC, an EKS, and some other stuff.
Manually deploy all the stacks via cdk deploy, works fine.
Deploy the codepipeline, works.
codepipeline tries to deploy the application stage, which contains all the stacks above.
1st step, download code from github, works.
2nd step, synth, works,
the application stage
1st step, deploy VPC, works
2nd step, deploy EKS, NOT WORKING, the error was happening when it tries to deploy the nested stack, the error is S3 access denied. no other messages.
Reproduction Steps
use codepipeline to deploy a VPC and an EKS
What did you expect to happen?
I am trying to deploy all the resources I need for my project by using codepipeline in AWS, CI/CD
What actually happened?
the EKS could not be deployed by codepipeline, but it does not have any problem in deploying via cdk deploy command locally.
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: