CDK Deploy: Environment agnostic deploy ingores CLI region option #28725
Labels
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/medium
Medium work item – several days of effort
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
I am trying to deploy an environment-agnostic stack to more than one region, using the command line
--region
option, but it will only deploy to the region specified in the AWS Config.Expected Behavior
The
--region
CLI option should override any other defaultsCurrent Behavior
The
--region
option is ignored when the profile specifies a default region.Reproduction Steps
cdk init --language typescript
Ensure the region is set to something other than
us-west-2
for the profile you are going to use.cdk deploy --profile test-profile --region us-west-2
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.121.1 (build d86bb1a)
Framework Version
No response
Node.js Version
v20.10.0
OS
Windows 11 Enterprise 22621.2861
Language
TypeScript
Language Version
TypeScript 5.2.2
Other information
No response
The text was updated successfully, but these errors were encountered: