Skip to content

Instantly share code, notes, and snippets.

@tanmay-bhat
Created January 10, 2023 15:09
Show Gist options
  • Save tanmay-bhat/298cb6103d7760e9026ac4ea0317df9b to your computer and use it in GitHub Desktop.
Save tanmay-bhat/298cb6103d7760e9026ac4ea0317df9b to your computer and use it in GitHub Desktop.
AWS CLI command to list all RDS which has backup retention period greater than 7 days :
aws rds describe-db-instances --query 'DBInstances[?BackupRetentionPeriod>`7`].[DBInstanceIdentifier,BackupRetentionPeriod]' --region <region> --output table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment