Improve RDS aurora snapshot cleanup

XMLWordPrintable

    • 1

      Current implementation of aurora snaphosts cleanup doesn't work out of the box showing the following error:

      [database-amazon-rds.sh:143 -> cleanup_old_db_backups][ip-10-16-32-50] INFO: Cleaning up any old RDS snapshots and retaining only the most recent 2
      [aws-rds-aurora-helper.sh:49 -> list_old_rds_snapshots][ip-10-16-32-50] DEBUG: Running aws rds describe-db-cluster-snapshots --region eu-west-1 --snapshot-type manual --query 'reverse(sort_by(DBClusterSnapshots[?starts_with(DBClusterSnapshotIdentifier, `bitbucket-prod-`)]| [?Status==`available`], &SnapshotCreateTime))[2:].DBClusterSnapshotIdentifier'
      
      An error occurred (InvalidClientTokenId) when calling the DescribeDBClusterSnapshots operation: The security token included in the request is invalid.
      

      The diff for changes diff-fixed-auroahelper.txt

            Assignee:
            Unassigned
            Reporter:
            Anton Shaleev (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: