-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
Status
In-Progress.
Doc page on CLI Telemetry: https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html
Last communication on 8/29/25:
Hi all,
I'm updating the launch date on this thread to say September 15th, 2025 to align with our internal timelines. It's still "on or after," that is, we'll let you know an official date where we are launching telemetry when there is one.
Please note that CDK adheres to the AWS-wide privacy policy for personal information collection.
Previous communication on 8/1/25:
Hey all,
Appreciate the continued engagement on the matter. While we canโt get into the details of the analysis, we can assure you that we have thoroughly evaluated this feature against applicable legal and compliance requirements, and we maintain our strong commitment to privacy and compliance.
For complete transparency, we've released version 2.1022.0 which allows you to inspect the exact telemetry data locally by using:
cdk [command] --unstable=telemetry --telemetry-file=my/local/filepath
We encourage you to review this output to verify for yourself the technical metadata that helps us provide the best the CDK CLI experience for everyone.
The AWS CDK team
Previous communication on 7/10/25 5:00PM ET:
Thanks for all the feedback. We understand that this is a sensitive change and we have considered the comments here, as well as conversations with multiple customers. In response to your concerns, we have made a few changes to the original proposal which tries to strike a balance between having valuable data that identifies regressions and usage patterns to help us improve our product, while respecting your privacy concerns and providing better options that can support your requirements.
Here is a summary of the changes we are making to the RFC proposal:
- We will not collect anonymized account Id, error logs, error messages and traces without explicit opt-in.
- As an additional measure for high governance enterprises, to enforce opt-out across your organization, we will clearly document how you can block calls to the CDK telemetry domain (we will publish the final url prior to launch).
- We are improving the opt-out experience with a global
--no-telemetryflag and adding acdk cli-telemetry --statuscommand to show your current opt-out status (The old--no-version-reportingflag is no longer recommended, but will also disable both library and CLI telemetry). - We will pre-launch with a version of telemetry that writes to a local file that you can use to evaluate the feature and the data to be sent. In aws-cdk v2.1021.0+, you can run
cdk [command] --unstable=telemetry --telemetry-file=my/local/filepathto save telemetry data to a local file. - We are moving the launch date to September (v2.1100.0) to give you time to review the generated telemetry, prepare your opt-out configuration, and give us more feedback. We will be announcing the exact date at least 4 weeks prior to launch.
The RFC will be updated to reflect these changes. Please continue to provide your feedback on this issue.
What is the issue?
The CDK team will begin to collect telemetry data on CLI usage on or after August 8, 2025. We do not collect customer content and we anonymize the telemetry we do collect. For more information on what data is collected and why, see the public RFC.
NOTE: Telemetry will NOT be collected for any CDK CLI version released prior to Aug 8, regardless of opt-in/out.
What is the impact?
There will be no visible performance impact to CLI users nor will there be any surface-level changes to how the CLI gets used.
Who is affected?
We will collect anonymous telemetry data from all CDK CLI users unless you opt-out.
How do I resolve this?
To opt out of telemetry collection for a CDK App, run the following command (you must be on CLI version 2.1020.0 or later):
cdk cli-telemetry --disable
This adds a context flag to cdk.context.json: { 'cli-telemetry': false }.
To opt out of telemetry globally, set { 'cli-telemetry': false' } in the context key of your ~/.cdk.json file.
Setting the environment variable CDK_DISABLE_CLI_TELEMETRY=true will also disable telemetry collection in that environment.
Activity
chore: notice for aws/aws-cdk/issues/34892"
chore: notice for aws/aws-cdk/issues/34892 (#871)
LucasSymons commentedon Jul 3, 2025
Why is this not opt-in rather than opt-out? Having to update every environment and stack to prevent data from being sent is a pain. Also are there further details on what will be sent? We have strict data control polices I have to adhere to.
nickdnk commentedon Jul 3, 2025
Hello
This is probably illegal in the EU without explicit consent. You should make this an opt-in feature, not opt-out.
Edit: To clarify, if any information that may, in theory, make it possible to identify a person is collected, it requires consent (that being explicit opt-in) in accordance with Article 6 of the GDPR. So it doesn't really matter if you do identify anyone, it matters if you could with the information collected.
hassaku63 commentedon Jul 3, 2025
Iโm generally fine with the telemetry feature itself and with having it enabled by default for new projects.
However, Iโm opposed to existing CDK projects suddenly sending data after a dependency update, without any explicit action by the user.
Could we adopt a policy like the following?
cli-telemetryflag is absent in a projectโs context, treat it asfalse(opt-out) so that pre-existing projects remain silent unless the user opts in.cli-telemetrytotrue.This approach preserves backward compatibility while still giving new projects the benefits of telemetry.
mwitas-lw commentedon Jul 3, 2025
How it is, that telemetry will be enabled for versions
>= 2, while command disabling telemetry is supported for CLI version 2.1020.0 or later? So there is no way to disable telemetry for users on2 <= version < 2.1020.0?JorgeMPG commentedon Jul 3, 2025
Enabling this by default already speaks volumes as to the supposed utility provided to the users. When you feel you need to make it opt-out, it's usually because you know people will not like the change.
As stated above, making this retroactive to existing projects is specially annoying and hostile to your users.
LMtx commentedon Jul 3, 2025
That is just a bad attitude.
WtfJoke commentedon Jul 3, 2025
When I try to execute the commandnpx cdk cli-telemetry --disableI receive following error:Unknown command: cli-telemetryEDIT: I've upgraded to aws-cdk 2.1020.1 (from 2.1017.1) and that solved it
Qix- commentedon Jul 3, 2025
Hi, this is illegal in the EU if it's not opt-in. It's also a shadow pattern. It's also arguably going to break a number of things, including audits and the like.
Please, please do not do this. CDK/AWS is already a thorn in the sides of many as it is, this is adding insult to injury.
123 remaining items
Opt-out CDK CLI telemetry
moltar commentedon Aug 26, 2025
I'm still not seeing a way explained how to opt out without changing cdk.context.json file.
I need a scalable way to do this. I use Projen templates and cdk.context.json cannot be managed by Projen as cdk has to write cached lookups there.
Spezp commentedon Aug 27, 2025
An environment variable being supported should be a minimum requirement. Unbelievable "proposal". I too now need to get a pre-pre deploy pipeline working to disable this intrusion.
mrpackethead commentedon Aug 27, 2025
I belive in projen that this is the right thing to do. It seems it works for me.
context: {
'cli-telemetry': false,
'aws-cdk:disable-metadata': true,
'@aws-cdk/core:enableAdditionalMetadataCollection': false
}
Qix- commentedon Aug 27, 2025
This makes no sense to me.
"We can't be transparent about things with you about how we treat YOUR data and deal with YOUR privacy rights! Just trust us ๐ฅบ๐๐ป๐๐ป"
This wasn't a proposal. This was a plan. Everyone on the CDK team should be ashamed. Or proud, I guess, as this has become the defacto soul-selling behavior of Amazon.
GG team, Sep 1 is in just a few days and you can close this issue and ignore the pesky open source peasants.
Unbelievable handling of this thread.
chore: move out cdk telemetry to cdk.json aws/aws-cdk#34892
kaizencc commentedon Aug 30, 2025
Hi all,
I'm updating the launch date on this thread to say September 15th, 2025 to align with our internal timelines. It's still "on or after," that is, we'll let you know an official date where we are launching telemetry when there is one.
@moltar @Spezp, we have a multitude of opt-out mechanisms beyond
cdk.context.json, including specifying incdk.jsonor an environment variable. @mrpackethead has a great example of how you can use projen to opt-out of telemetry.@mrpackethead, a region specific issue would be something like we see an increase in deploy failures in a new region like ap-east-2. We'd want to be able to notice that and get to the bottom of it. As for why we are collecting successful events, we need to in order to make data-driven decisions on what to work on next. The final decisions on what to work on next, which this data will supplement towards, are made by the AWS CDK team.
Please note that CDK adheres to the AWS-wide privacy policy for personal information collection.
[-]โ NOTICE: CDK CLI will begin to collect anonymous telemetry data on or after Sep 1st, 2025[/-][+]โ NOTICE: CDK CLI will begin to collect anonymous telemetry data on or after Sep 15th, 2025[/+]mrpackethead commentedon Aug 30, 2025
"We will be announcing the exact date at least 4 weeks prior to launch."
Given its 30 Aug, 4 weeks from that is September 27. So, while 'on or after 15th is technically correct', how about stop the gaming, and just do what you said you woudl do. Lets change the topic to Sept 27.
You've also said you'd publish the endpoint address for where the telemtry is going, so that people can modify their network permissions. Is that available yet? The 4 weeks really can't start till then. Unless you're ok with with breaking one of the fundemetnals of AWS leadership principasl "They work vigorously to earn and keep customer trust." But given the approach of this entire program of work. ( It never was a proposal, and it was entirely disingenuous to call it a prospal ) it seems that the CDK team are immune to this kind of behaviour. Its fair to say, that the CDK team have raised the irk of a lot of senior folks within AWS, who have privately expressed their dismay at the continuing saga that CDK has become. I would suggest to the cdk team, they need to figure out how to add value, earn trust, or risk becoming one of those thigns that Andy says is gone-burger.
I've never experienced before anyone in AWS attempting to gaslight me, by engaging with local AWS staff in an attempt to get me to stop asking questions.. Seriously, you asked for questions, you did'nt like the reponse, and then you dont' ask, them and then, you start that kind of behaviour.
I've never seen such a large number of thumbs down as this, ever in cdk history. its a sad sad day.

mrpackethead commentedon Aug 30, 2025
There is nothing great about this at all. Its exceptionally poor. What we should be doing is this.
Because cli-telemtry shoudl be disabled by default.
Then get that from Cloudformation. The only way you can get the region info in the cli is to snoop on my credentials. That makes me very unhappy. One has to wonder if the CLoudformation team said, no way cdk team, that would breech customer trust.
I can tell you what the CDK team needs to work on next. Earning trust back again.
mrpackethead commentedon Aug 30, 2025
yup. Its farcial to put this in an RFP. At best it could be a RFC, ( request for comments ).
Actually, it seems that there are multiple people in the CDK team who are deeply ashamed about this. It unfortunate that the majority are getting tarred by the directives that a few line managers are pushing.
They forget this burns their front line, SA's, TAMs, Account Managers, and in some case this will loose AWS revenue in the long game.
Thats not my experience. Of all the aws services i've used/use, i've only seen this level of contempt for customers, with one other service. Theres been an ongoing history of this behavior for quite a few years.
mrpackethead commentedon Aug 30, 2025
I suggest the strongest message that we can send AWS will be to actively encourage all CDK users to disable telemetry.
prazian commentedon Sep 5, 2025
Updating this in all the existing projects is a pain...
I hope AWS reverts to its customer-centric approach, rather than silently pushing such changes.