-
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
running cdk bootstrap with an existing cdk.json fails attempting to execute app
#31255
Comments
Hi @josefaidt , thanks for reaching out. AFAIK, running I found a somewhat similar issue -#8075 and an explanation and workaround for the problem. Let me know if this is helpful on the same line, as you are pointing in this issue. Thanks! |
Hey @khushail thanks for the clarification and the related issues! It seems like this is expected behavior that the CLI will process |
@josefaidt , that sounds perfect. So should I consider your issue to be answered and close this one ?? |
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 @khushail thank you for clarifying that the json file is being checked for the relevant configurations, however I found it unexpected that the |
Hi @josefaidt , apologies for the late repsonse. It might be helpful to go through the CDK bootstrapping doc which clearly mentions about running the app as well -
so you can opt out of running the Hope that would be helpful! |
Hey @khushail no worries! Can the current app influence how bootstrapping works? Or is it used to resolve the current account and region? |
@josefaidt , AFAIU, bootstrapping is separate process. if the app contains environment agnostic stack, which means no env or region are specified, the default region and environment are bootstrapped. |
Describe the bug
I have a
cdk.json
file in my directory with the following contentsWhen I try to run bootstrap in this directory with
pnpm dlx
I receive an error sayingtsx
is not found.Unlike
npx
,pnpm dlx
(and similar with yarn) will reach out to the registry to execute instead of the local node_modules. Granted I do have the CLI in this project locally, but I thought it was odd to receive this error when running bootstrapRegression Issue
Last Known Working CDK Version
No response
Expected Behavior
running
cdk bootstrap
does not execute the appCurrent Behavior
see description
Reproduction Steps
pnpm init
pnpm dlx aws-cdk bootstrap ...
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.154.1 (build febce9d)
Framework Version
No response
Node.js Version
22.x
OS
macos
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: