Skip to content

CLI: notice suppression via cdk.json is not working #724

@moltar

Description

@moltar

Describe the bug

I'm supressing notices per documentation: https://docs.aws.amazon.com/cdk/v2/guide/ref-cli-cmd-notices.html

I have the following in my cdk.json file:

{
  // ... snip

  "notices": false,
  "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
}

Yet I still notice spam in my term:

$> cdk ls

NOTICES         (What's this? https://github.com/aws/aws-cdk/wiki/CLI-Notices)

34892   CDK CLI will collect telemetry data on command usage starting at version 2.1100.0 (unless opted out)

        Overview: We do not collect customer content and we anonymize the
                  telemetry we do collect. See the attached issue for more
                  information on what data is collected, why, and how to
                  opt-out. Telemetry will NOT be collected for any CDK CLI
                  version prior to version 2.1100.0 - regardless of
                  opt-in/out.

        Affected versions: cli: ^2.0.0

        More information at: https://github.com/aws/aws-cdk/issues/34892


If you don’t want to see a notice anymore, use "cdk acknowledge <id>". For example, "cdk acknowledge 34892".

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

N/A

Expected Behavior

Do not show notices.

Current Behavior

Shows notices.

Reproduction Steps

N/A

Possible Solution

N/A

Additional Information/Context

N/A

CDK CLI Version

2.1019.2 (build c29855e)

Framework Version

^2

Node.js Version

v22.12.0

OS

macOS

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions