ecs: set loggroup retention period for FireLensLogDriver
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the feature
Hello,
I would like to be able to set the maximum retention for the CloudWatch log group that is created with [FireLensLogDriver](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FireLensLogDriver.html).
The interface [FireLensLogDriverProps](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FireLensLogDriverProps.html) does not have the option to set the logRetention.
Similar to how it is currently done in [AwsLogDriver](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.AwsLogDriver.html) using [logRetention](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.AwsLogDriverProps.html#logretention) from AwsLogDriverProps
Thanks
### Use Case
Be able to set the maximum retention for the CloudWatch log group
### 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.81.0
### Environment details (OS name and version, etc.)
Mac OS 13.6.2
Contributor guide
Research direction
Start with the FireLensLogDriver and FireLensLogDriverProps interfaces, then compare them with AwsLogDriver and AwsLogDriverProps, especially logRetention. Trace how FireLensLogDriver creates its CloudWatch log group and verify that the completed change allows its retention period to be configured and applied.
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