sincecutoff.com
← all changes

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

Check the installed version and the source before using it. Entry JSON

Report a problem with this card