You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding CloudWatchLogsAddon and setting parm logRetentionDays does not work. When respective CloudWatch LogGroups are created no retention is set a.k.a all log groups are set with never expire.
When adding CloudWatchLogsAddon and setting parm logRetentionDays when respective CloudWatch LogGroups are created retention for all log groups must be set to expire in number of days specified in param logRetentionDays.
Current Behavior
When adding CloudWatchLogsAddon and setting parm logRetentionDays does not work. When respective CloudWatch LogGroups are created no retention is set a.k.a all log groups are set with never expire.
Describe the bug
When adding
CloudWatchLogsAddon
and setting parmlogRetentionDays
does not work. When respective CloudWatch LogGroups are created no retention is set a.k.a all log groups are set withnever expire
.Expected Behavior
When adding
CloudWatchLogsAddon
and setting parmlogRetentionDays
when respective CloudWatch LogGroups are created retention for all log groups must be set to expire in number of days specified in paramlogRetentionDays
.Current Behavior
When adding
CloudWatchLogsAddon
and setting parmlogRetentionDays
does not work. When respective CloudWatch LogGroups are created no retention is set a.k.a all log groups are set withnever expire
.There are 2 problems why this is happening:
Lack of persimmons which allow
logs:PutRetentionPolicy
andlogs:DeleteRetentionPolicy
in this file
cdk-eks-blueprints/lib/addons/cloudwatch-logs/iam-policy.ts
Line 7 in 69d730e
in addon code
CloudWatchLogsAddon
we set wrong paramcloudWatchLogs.log_retention_days
check here https://github.com/aws/eks-charts/blob/2ca1cb467a7ded4a608ab314b5cecf04dc7d758c/stable/aws-for-fluent-bit/templates/configmap.yaml#L140C42-L140C73 it should becloudWatchLogs.logRetentionDays
Reproduction Steps
Just try to execute code from example page https://aws-quickstart.github.io/cdk-eks-blueprints/addons/cloudwatch-logs/
Possible Solution
I will provide PR with needed changes to fix this
Additional Information/Context
No response
CDK CLI Version
2.99.1 (build b2a895e)
EKS Blueprints Version
1.12.0
Node.js Version
v18.15.0
Environment details (OS name and version, etc.)
Mac OS Ventura - Version 13.6.2
Other information
No response
The text was updated successfully, but these errors were encountered: