cdk CLI adds global --region option
Introduced 2026-05-19 · score 0.97
HOW TO USE IT
When a CDK CLI command needs a specific AWS Region, pass `--region <region>` with the command. The CLI uses that Region for deployment operations and context lookup during synthesis.
cdk <command> --region <region>WHY THIS HELPS
When running a CDK CLI command for a repository app that needs a specific region, pass the global region option.
REQUIREMENTS AND LIMITATIONS
- Version: 2.1123.0
- --region <region>: AWS Region to use; the command-line value takes precedence over other Region sources.
- Prerequisite: Install the AWS CDK CLI with npm. Region and AWS authentication are needed for deployment operations and to retrieve context values during synthesis.
FIRST-PARTY EVIDENCE
- https://github.com/aws/aws-cdk-cli/releases/tag/aws-cdk%40v2.1123.0
- https://docs.aws.amazon.com/cdk/v2/guide/cli.html
- https://github.com/aws/aws-cdk-cli/blob/main/packages/aws-cdk/README.md
Check the installed version and the source before using it. Entry JSON