Skip to content

core: add global logRetentionDays setting #23909

@fargito

Description

@fargito

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalityeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions