(cli): Every CLI option should be supported as env variable

オープン
#809 コメント 1 件 リアクション 3 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@9pace がすでに取り組んでいます。

2026年6月3日 から。

評価

この issue はまだ評価されていません。

説明

aws-cdk effort/medium feature-request p1

Follow up on https://github.com/aws/aws-cdk-cli/issues/743 and https://github.com/aws/aws-cdk-cli/issues/808

Every CLI option (that's in the schema) should be also be supported as an env var, using a standardized naming scheme.

For example:

AWS_CDK_CONFIG_STRICT=true
aws_cdk_config_strict=true
  • This requires the schema to be aware of types and to parse values accordingly.
  • Naming needs to be consistent and support nested structures
  • Consider if we want to support both all upper and all lower or just one of them
  • Windows support

In it's final form, the configuration should be read with the following priority order (first in list takes precedence):

  1. Command-line options
  2. Environment variables
  3. Per-app configuration in $PWD/cdk.json
  4. Per-user configuration in $HOME/cdk.json
  5. Built-in defaults
主要言語
TypeScript
スター
110
フォーク
138
平均マージ
1日 9時間
マージ済み PR(30日)
55

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/aws-cdk-cli のほかの issue

aws/aws-cdk-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。