cdk notices - AWS Cloud Development Kit (AWS CDK) v2

これは AWS CDK v2 デベロッパーガイドです。古い CDKv1 は 2022 年 6 月 1 日にメンテナンスを開始し、2023 年 6 月 1 日にサポートを終了しました。

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

cdk notices

CDK アプリケーションの通知を表示します。

通知には、セキュリティの脆弱性、リグレッション、サポートされていないバージョンの使用に関する重要なメッセージが含まれる場合があります。

このコマンドは、承認されているかどうかにかかわらず、関連する通知を表示します。関連する通知は、デフォルトですべてのコマンドの後に表示される場合もあります。

通知は、次の方法で抑制できます。

  • コマンドオプション経由。以下に例を示します。

    $ cdk deploy --no-notices
  • プロジェクトの cdk.json ファイル内のコンテキストを使用して、すべての通知を無期限に非表示にします。

    { "notices": false, "context": { // ... } }
  • cdk acknowledge コマンドを使用して各通知を承認します。

使用方法

$ cdk notices <options>

オプション

すべての CDK CLI コマンドで動作するグローバルオプションのリストについては、「」を参照してくださいグローバルオプション

--help, -h BOOLEAN

コマンドのcdk noticesコマンドリファレンス情報を表示します。

cdk deploy コマンドの実行後に表示されるデフォルトの通知の例

$ cdk deploy ... # Normal output of the command NOTICES 16603 Toggling off auto_delete_objects for Bucket empties the bucket Overview: If a stack is deployed with an S3 bucket with auto_delete_objects=True, and then re-deployed with auto_delete_objects=False, all the objects in the bucket will be deleted. Affected versions: <1.126.0. More information at: https://github.com/aws/aws-cdk/issues/16603 17061 Error when building EKS cluster with monocdk import Overview: When using monocdk/aws-eks to build a stack containing an EKS cluster, error is thrown about missing lambda-layer-node-proxy-agent/layer/package.json. Affected versions: >=1.126.0 <=1.130.0. More information at: https://github.com/aws/aws-cdk/issues/17061 If you don’t want to see an notice anymore, use "cdk acknowledge ID". For example, "cdk acknowledge 16603"

cdk notices コマンドを実行する簡単な例

$ cdk notices NOTICES 16603 Toggling off auto_delete_objects for Bucket empties the bucket Overview: if a stack is deployed with an S3 bucket with auto_delete_objects=True, and then re-deployed with auto_delete_objects=False, all the objects in the bucket will be deleted. Affected versions: framework: <=2.15.0 >=2.10.0 More information at: https://github.com/aws/aws-cdk/issues/16603 If you don’t want to see a notice anymore, use "cdk acknowledge <id>". For example, "cdk acknowledge 16603"