-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): Allow specifying options using env vars (#1447)
Allows passing options to the `cdk` command using environment variables with the `CDK_` name prefix. This can be used, for example, for the following: - `CDK_VERSION_REPORTING=false` disables version reporting - `CDK_REQUIRE_APPROVAL=broadening` requires approval for changes to security policies that broaden the grants - `CDK_VERBOSE=true` enables verbose logging in the toolkit Added a validator in `cdk doctor` that will display the environment variables that may be picked up by the toolkit, and highlight those that are reserved for internal use by the toolkit (`CDK_CONTEXT_JSON` and `CDK_OUTDIR`).
- Loading branch information
1 parent
8c17ca7
commit 7cd84a0
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters