-
-
Notifications
You must be signed in to change notification settings - Fork 860
Implement CloudWatch Log Retention Management #4586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Implement CloudWatch Log Retention Management #4586
Conversation
Sir please check these functions so that I can appropriately call them in other files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @lazyperson1020 , These functions looks good. Can you call this function when after you have created the task definition for AWS Fargate worker to update the log group?
I have called the function in |
Fixes - #4585
This PR implements retention policy management for CloudWatch logs associated with EvalAI challenges. Currently, logs are retained indefinitely, which could lead to unnecessary costs. This implementation sets appropriate retention periods based on challenge end dates.
Changes -
Reference
https://boto3.amazonaws.com/v1/documentation/api/1.26.93/reference/services/logs/client/put_retention_policy.html