Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

chore: Update check rds config script to ignore whitelist RDS #7143

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions util/check_rds_configs/check_rds_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ def cli(db_engine, ignore):
db_cluster_identifier = cluster['DBClusterIdentifier']
tags = rds.list_tags_for_resource(ResourceName=arn)['TagList']
print("Checking cluster tags on DB cluster {}".format(db_cluster_identifier))
exit_status, clusters_without_tags = check_tags(clusters_without_tags, db_cluster_identifier, tags)
if cluster['CopyTagsToSnapshot'] == False:
cluster_with_disabled_snapshot_tags.append(cluster['DBClusterIdentifier'])
if db_cluster_identifier not in ignore_rds and "test" not in db_cluster_identifier:
exit_status, clusters_without_tags = check_tags(clusters_without_tags, db_cluster_identifier, tags)
if cluster['CopyTagsToSnapshot'] == False:
cluster_with_disabled_snapshot_tags.append(cluster['DBClusterIdentifier'])

for instance in cluster['DBClusterMembers']:
db_identifier = instance['DBInstanceIdentifier']
Expand Down
Loading