Replies: 2 comments 1 reply
-
Hello CDK community, I’d really appreciate hearing your thoughts on this new behavior. I’m also more than happy to address any questions you might have! Looking forward to hearing from you! |
Beta Was this translation helpful? Give feedback.
-
Wanted to clarify: the current analytics reporting is opt-out, not opt-in as implied here. Could you clarify a bit more how the opt-in/opt-out precedures will look? The new feature flag is to opt in to the new data collection, right? If users don't change the feature flags, they will never be opted in? Since the current behavior is opt-out and we use the configuration option to opt out, what would be the behavior if both the old opt-out and the new opt-in flags are set? |
Beta Was this translation helpful? Give feedback.
-
Proposal
This discussion aims to expand the scope of usage data collected by the AWS CDK to better inform CDK development and improve communication for customer-impacting topics. Currently, for those that opt in, the CDK collects usage data on your CDK version and which L2 constructs you use. For more information on current CDK behavior, see Version Reporting.
This proposal expands the scope of usage data collection to include the following from L2 constructs defined in CDK applications:
For property keys and values that you uniquely create, the entire object will be redacted. For example, if you use InlineApiDefinition to define an OpenAPI specification and pass it into a RestApi construct, the entire InlineApiDefinition object will be redacted. For an example, see Appendix.
Scope
This change will be introduced in a future CDK version release targeted for February 15, 2025 with the following behavior:
versionReporting
configuration file flag or--no-version-reporting
command line option will be automatically opted out of the additional usage data collection. However, we encourage you to opt in if possible due to the benefits of reporting this data.Benefits
Collecting this additional usage data provides the following benefits:
Potential Concern
The following are potential areas of concerns that CDK users may have:
AWS::CDK::Metadata
resource is compressed.Appendix
To illustrate this change, the following is an example of a CDK app:
At synthesis, usage data is collected, compressed, and stored in the
AWS::CDK::Metadata resource
. Based on current behavior, the following is an example of the usage data that will be collected from our example app:With this proposal, the following usage data will be collected. The * value replaces property values that will be redacted from data collection:
Beta Was this translation helpful? Give feedback.
All reactions