-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
CDK Bootstrap requires --app #7906
Comments
same here - I can confirm the latest working version was 1.35.0, I've skipped 1.36.0, but in 1.36.1 this regression started. And I can confirm that nothing changed on our side, cdk.json and app.py can be found in the directory where cdk boostrap is executed. |
I'm confused by this comment in #7510 : "It used to be that if we had an --app argument, we would always glob This makes it super hard/annoying to run cdk bootstrap aws://1234/us-somewhere in a CI/CD project; you have to add a stack" Prior to this change that's what I did and I neither passed Might as well ping @rix0rrr to this issue. |
are you providing a concrete environment name and it's not working? I'm trying to reproduce this behavior. so I created a basic shell script
and then I executed it (outside of an app). It ran successfully, so I'm thinking I've missed something. What am I missing here? |
Hi shivlaks, this is interesting - I've just tried it out also outside of an app and it brings me exactly the same message: I'm executing this on an EC2 instance without any extra credentials, just using its IAM role, which has admin permissions in the account. Second use case I've tried when I'm assuming a role for another account - the same error. Switching back to 1.35.0 works w/out issues. What kind of extra information can I provide you to investigate this further? Quite a blocker for us - we stick currently to 1.35.0 because of this. Thanks |
Lot of changes in #7510 - really difficult to figure out what exactly could cause the problem - the changes somewhere in replacing the accountId, regionId by Environment or some manipulation of the globs, etc. OTOH, what confuses me is the comment of the problem is should solve - I always ran this outside an application as far as I can see in my script and w/out --app argument and it never failed for me. So actually --app was never needed in my case. |
@ilkomiliev can you run the command with the -v flag and redact output as needed @rix0rrr any ideas here? |
I ran the bootstrap command locally where it would usually work (when it was previously using CDK v1.35.0) and I'm still getting the
|
this is from my env: CDK toolkit version: 1.38.0 (build d5fa31f) |
@chrisb92 @ilkomiliev thanks! I'm able to repro it and am taking a deeper look |
Below is from my CI/CD pipeline logs. I want to add that I don't bootstrap from an existing product. This is a CI/CD pipeline job to bootstrap a new account.
|
@tmclaugh - thanks! - I think i've gotten into the failure point. writing up a fix, tests, etc |
❓ General Issue
The Question
I recently updated my project aws-cdk dependencies from v1.35.0 to v1.38.0 and I seem to be experiencing a new issue where if I call
npx cdk bootstrap aws://${TARGET_ACCOUNT}/${AWS_REGION}
in my bash script, I get the error--app is required either in command-line, in cdk.json or in ~/.cdk.json
previously I was able to use this command without--app
.I noticed that there was something changed in this area in v1.36.0, see #7510.
I'm struggling to find any supporting documentation on this change where
--app
is required to runcdk bootstrap
.Is this intended functionality, or has a bug been introduced?
Environment
Other information
The text was updated successfully, but these errors were encountered: