PLT-1612 Manually managed script to ensure cloudwatch logs in production are retained #397
Open
PLT-1612 Manually managed script to ensure cloudwatch logs in production are retained #397
Conversation
…nfiguration wait periods.
…ion leveraging either the dry run output file or y/n entry from user input.
… managed by Terraform.
juliareynolds-nava
previously approved these changes
Mar 3, 2026
bhodges-navapbc
approved these changes
Mar 6, 2026
| for excluded_group_name in "${EXCLUSION_LIST[@]}"; do | ||
| if [[ "$excluded_group_name" == "$LOWER_NAME" ]]; then | ||
| TF_MAINTAINED+=("$NAME $RETENTION") | ||
| break # Exit the loop once a match is found |
There was a problem hiding this comment.
A question on intent, is the aim to just highlight which log groups are TF-managed or in addition to identifying these, wanting to skip the application of retention settings (if TF-managed)?
juliareynolds-nava
approved these changes
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…nfiguration wait periods.
🎫 Ticket
https://jira.cms.gov/browse/PLT-1612
🛠 Changes
Creates one script to set .
ℹ️ Context
Cloudwatch log group retention is being managed by the AWS Organization to default to 30 days. We want to ensure all of our logs are retained by design and set a 180 day grace period for us to confirm longstanding logging storage architecture.
🧪 Validation
This script will need to be modified to be run against select dev or test log groups. The dry run feature of this script as is will be run against production.