(aws-eks): log group configuration
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Description
The `Cluster` L2 construct creates a CloudWatch log group `aws/eks//cluster`. Unfortunately, neither the `RetentionDays` nor the `RemovalPolicy` can be configured right now.
### Use Case
* Fulfilling company guidelines regarding log retention periods
* Cleaner handling for short-lived development clusters (shorter retention periods and using RemovalPolicy.DELETE so that dev clusters are completely cleaned up after deleting the stack).
### Proposed Solution
I would suggest to extend the `ClusterProps`, so that the user is able to pass `RetentionDays` and `RemovalPolicy` for the cluster log group.
### Other information
_No response_
### Acknowledge
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
Contributor guide
Research direction
Start with the aws-eks Cluster L2 construct and its ClusterProps interface, which are named in the request. Trace where the CloudWatch log group aws/eks//cluster is created, then review the existing construct tests before adding coverage. Done means callers can configure the log group's RetentionDays and RemovalPolicy through ClusterProps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100