๐ก๏ธ AWS RDS Snapshot is 90 days old or more๐ข
- Contextual name: ๐ก๏ธ Snapshot is 90 days old or more๐ข
- ID:
/ce/ca/aws/rds/snapshot-old - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
COST
Logicโ
- ๐ง prod.logic.yaml๐ข
Descriptionโ
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
INCOMPLIANTif itsSnapshot Create Time, the timestamp marking snapshot creation, exceeds 90 days.RDS Snapshots with a
Stateother than available are marked asINAPPLICABLE.
Remediationโ
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โ
- 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โ
Linked Framework Sectionsโ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| ๐ผ Cloudaware Framework โ ๐ผ Waste Reduction | 25 | no data |