AWSRdsSnapshot

nicolaw 14th June 2019 at 4:26pm
AWS
aws rds create-db-cluster-snapshot \
  --db-cluster-identifier "$(terraform workspace show)" \
  --db-cluster-snapshot-identifier "$(terraform workspace show)-$(date +%Y%m%d)"

aws rds describe-db-cluster-snapshots \
  | jq --arg db "$(terraform workspace show)" \
    -r '.DBClusterSnapshots[]
        | select( .DBClusterIdentifier | startswith($db) )
        | select( .DBClusterSnapshotIdentifier | startswith("rds:") | not)'