aws / aws/aws-cdk

(aws-eks): log group configuration

Open
#19,459 7 comments 6 reactions 0 assignees View on GitHub
@aws-cdk/aws-eks @aws-cdk/aws-eks-v2-alpha effort/medium feature-request p2
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.