Skip to content

Conversation

@siddavamshi4
Copy link
Contributor

Related Issue

OPSEXP-3170

Summary

This PR introduces a GitHub Action to automatically clean up AWS MQ configurations that:

  • Have the name prefix molecule-
  • Are older than 30 days based on their creation timestamp
  • Are not currently attached to any active brokers
  • Schedules to run on 1st of every month

Note:

We are using .LatestRevision.Created field to check the age and take delete accordingly.

Copy link
Contributor

@pmacius pmacius left a comment

Choose a reason for hiding this comment

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

Looks like you didn't enable pre-commit on this repo pre-commit install. Run this command and next time you commit it will run the pre-commit. If you have no changes you can still trigger it by pre-commit run --all-files

@siddavamshi4 siddavamshi4 requested a review from gionn July 22, 2025 09:28
@gionn gionn requested a review from Copilot July 22, 2025 09:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a GitHub Action workflow to automatically clean up stale AWS MQ configurations to prevent resource accumulation. The workflow targets configurations with specific naming patterns that are older than 30 days and not actively in use.

  • Implements automated cleanup of molecule-* prefixed MQ configurations older than 30 days
  • Includes safety checks to prevent deletion of configurations attached to active brokers
  • Provides dry-run capability for safe testing and schedules monthly execution

@gionn gionn changed the title OPSEXP-3170 Add GitHub Action to delete AWS MQ configurations older than 30 days OPSEXP-3170 Add workflow to cleanup AWS MQ configuration leftovers Jul 22, 2025
@siddavamshi4 siddavamshi4 merged commit dd1ac5e into master Jul 22, 2025
61 checks passed
@siddavamshi4 siddavamshi4 deleted the OPSEXP-3170 branch July 22, 2025 13:16
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.

4 participants