Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): Allow specifying options using env vars #1447

Merged
merged 1 commit into from
Dec 28, 2018

Commits on Dec 28, 2018

  1. feat(cli): Allow specifying options using env vars

    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`).
    RomainMuller committed Dec 28, 2018
    Configuration menu
    Copy the full SHA
    cdcdf13 View commit details
    Browse the repository at this point in the history