Skip to main content

๐Ÿ›ก๏ธ AWS RDS Snapshot is 90 days old or more๐ŸŸข

Logicโ€‹

Descriptionโ€‹

Open File

Descriptionโ€‹

This policy identifies Amazon RDS Snapshots that are 90 days old or more.

Rationaleโ€‹

Retaining database snapshots beyond their useful lifecycle can lead to unnecessary storage costs, particularly in environments with frequent backups. Regularly reviewing and removing outdated snapshots that are no longer required for business or compliance purposes supports both cost optimization and effective data lifecycle management.

Impactโ€‹

Deleting snapshots that are still required for disaster recovery or compliance may result in data loss. Always confirm the snapshotโ€™s purpose before removal.

Auditโ€‹

This policy flags an AWS RDS Snapshot as INCOMPLIANT if its Snapshot Create Time, the timestamp marking snapshot creation, exceeds 90 days.

RDS Snapshots with a State other than available are marked as INAPPLICABLE.

Remediationโ€‹

Open File

Remediationโ€‹

If a snapshot is no longer required for operational use consider deleting it. If it must be retained for compliance or archival purposes, you can archive it to Amazon S3.

Delete the Snapshotโ€‹

From Command Lineโ€‹
aws rds delete-db-snapshot \
--db-snapshot-identifier {{db-snapshot-id}}

Archive the Snapshot to Amazon S3โ€‹

Prerequisitesโ€‹
From Command Lineโ€‹
  1. Before exporting DB snapshot data to Amazon S3, you must grant the snapshot export task write access to the target bucket. Create an IAM Policy that grants the required permissions:
aws iam create-policy  --policy-name {{export-policy}} --policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ExportPolicy",
"Effect": "Allow",
"Action": [
"s3:PutObject*",
"s3:ListBucket",
"s3:GetObject*",
"s3:DeleteObject*",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::{{bucket-name}}",

... [see more](remediation.md)

policy.yamlโ€‹

Open File

Linked Framework Sectionsโ€‹

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
๐Ÿ’ผ Cloudaware Framework โ†’ ๐Ÿ’ผ Waste Reduction25no data