Skip to content
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

Added the tag_cluster_resources policy #692

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

athiruma
Copy link
Collaborator

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Added the tag_cluster_resources policy in the approach.

Approach:

  1. Find the cluster tag from ec2 instances
  2. Get the Username from one of the cluster instance
  3. Get the user tags and filter the updated tags
  4. Use the aws resource_group_tagging_api to tag all the resources having the cluster_tag

Note: Added the OptionalTags env var: ['Owner', 'Manager', 'Project', 'Environment']. This helps this can use any account without adding NA values to these keys.

By following the above approach we can tag all the resources that belong to the cluster in a single click.

Reference:
ResourceGroupTagging: Link1, Link2

For security reasons, all pull requests need to be approved first before running any automated CI

@athiruma athiruma added enhancement New feature or request ok-to-test PR ok to test labels Nov 24, 2023
@athiruma athiruma self-assigned this Nov 24, 2023
@athiruma athiruma marked this pull request as draft May 28, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ok-to-test PR ok to test
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

1 participant