AwsCdkCli: Unable to provide Environment to Bootstrap command #31656
Labels
bug
This issue is a bug.
cli
Issues related to the CDK CLI
effort/medium
Medium work item – several days of effort
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
I am attempting to run the bootstrap command from a lambda.
This gives the error
Error: Specify an environment name like 'aws://123456789012/us-east-1'
.When running
cdk bootstrap
from the terminal, I would provide this value. But I don't see anywhere in BootstrapOptions to provide this.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I would expect to have somewhere here I would provide the environment information.
Current Behavior
Currently I get this error message
Error: Specify an environment name like 'aws://123456789012/us-east-1'
.Reproduction Steps
Run code similar to the following in a lambda.
Possible Solution
Add a field in BootstrapOptions to accept the environment information like "aws://123456789012/us-east-1".
Additional Information/Context
No response
CDK CLI Version
N/A
Framework Version
No response
Node.js Version
aws_lambda.Runtime.NODEJS_20_X
OS
AWS Lambda
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: