cdk bootstrap: Error running cdk bootstrap with yaml template #31547
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
p2
package/tools
Related to AWS CDK Tools or CLI
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Running command:
cdk bootstrap --template bootstrap-template.yaml --profile
Returns error message:
Error: Trying to perform an operation that requires a bootstrap stack; you should not see this error, this is a bug in the CDK CLI.
Full trace below:
⏳ Bootstrapping environment aws://account-id/ap-southeast-2...
❌ Environment aws://account-id/ap-southeast-2 failed bootstrapping: Error: Trying to perform an operation that requires a bootstrap stack; you should not see this error, this is a bug in the CDK CLI. ❌ Environment aws://account-id/ap-southeast-2 failed bootstrapping: Error: Trying to perform an operation that requires a bootstrap stack; you should not see this error, this is a bug in the CDK CLI.
at NoBootstrapStackEnvironmentResources.lookupToolkit (C:\Users\profile.name\AppData\Roaming\npm\node_modules\aws-cdk\lib\index.js:463:19087)
at makeBodyParameter (C:\Users\profile.name\AppData\Roaming\npm\node_modules\aws-cdk\lib\index.js:453:93731)
at deployStack (C:\Users\profile.name\AppData\Roaming\npm\node_modules\aws-cdk\lib\index.js:463:259)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async C:\Users\profile.name\AppData\Roaming\npm\node_modules\aws-cdk\lib\index.js:468:2348
at async Promise.all (index 0)
at async CdkToolkit.bootstrap (C:\Users\profile.name\AppData\Roaming\npm\node_modules\aws-cdk\lib\index.js:468:2193)
at async exec4 (C:\Users\profile.name\AppData\Roaming\npm\node_modules\aws-cdk\lib\index.js:521:54490)
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
cdk bootstrap to run to completion
Current Behavior
Command is failing to execute
Reproduction Steps
Generate template
cdk bootstrap --show-template > bootstrap-template.yaml
Run command
cdk bootstrap --template bootstrap-template.yaml --profile
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.159.1 (build c66f4e3)
Framework Version
No response
Node.js Version
v20.11.0
OS
Windows 10 Enterprise
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: