-
Notifications
You must be signed in to change notification settings - Fork 4.5k
core: add global logRetentionDays setting #23909
Copy link
Copy link
Open
Labels
@aws-cdk/coreRelated to core CDK functionalityRelated to core CDK functionalityeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
add a global logRetentionDays context setting in cdk.json and make it the default for all log retention settings
Use Case
Hello,
Setting the retention period on all resources is quite frustrating.
Moreover, the value is often identical between all resources in the same stack, so it would be awesome to be able to define it in a centralized place.
Also, since the default is Infinity, having this setting would potentially have a big impact to help reduce the number of useless logs.
WDYT?
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.62.2
Environment details (OS name and version, etc.)
Ubuntu 22.04
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/coreRelated to core CDK functionalityRelated to core CDK functionalityeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2