core: add global `logRetentionDays` setting
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
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
- [X] 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
Contributor guide
Research direction
Start with cdk.json and map how existing log retention settings are defined and propagated across resources. The work is done when a global logRetentionDays setting is accepted there and becomes the default for all log retention settings without requiring each resource to repeat it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100