Skip to content

PLT-1612 Manually managed script to ensure cloudwatch logs in production are retained #397

Open
mianava wants to merge 10 commits intomainfrom
PLT-1612/mianava/loggroupret
Open

PLT-1612 Manually managed script to ensure cloudwatch logs in production are retained #397
mianava wants to merge 10 commits intomainfrom
PLT-1612/mianava/loggroupret

Conversation

@mianava
Copy link
Contributor

@mianava mianava commented Feb 24, 2026

…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.

@mianava mianava marked this pull request as ready for review March 3, 2026 17:36
@mianava mianava requested a review from a team as a code owner March 3, 2026 17:36
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants