Skip to content

Commit

Permalink
Added activity 6
Browse files Browse the repository at this point in the history
  • Loading branch information
qtkhajacloud committed Dec 15, 2022
1 parent 9fb6a83 commit 3535271
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions workshop/15dec22/activity6.sh
@@ -0,0 +1,8 @@
#!/bin/bash

# get all the instance identifiers
for instance_identifier in $(aws rds describe-db-instances --query "DBInstances[].DBInstanceIdentifier" --output text)
do
echo "dbinstance found with identifier ${instance_identifier}"
aws rds delete-db-instance --db-instance-identifier ${instance_identifier} --delete-automated-backups --skip-final-snapshot
done

0 comments on commit 3535271

Please sign in to comment.