Skip to content

Commit

Permalink
use regions to clean up buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
gojko committed May 15, 2019
1 parent fac8646 commit 3d6d533
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/clean-test-resources.sh
Expand Up @@ -52,9 +52,9 @@ for log in $apiLogs; do
aws logs delete-log-group --log-group-name $log --profile $AWS_PROFILE --region $AWS_REGION
done

buckets=`aws s3api list-buckets --output text --query 'Buckets[?starts_with(Name,\`test\`)].Name'`
buckets=`aws s3api list-buckets --output text --query 'Buckets[?starts_with(Name,\`test\`)].Name' --profile $AWS_PROFILE --region $AWS_REGION`
for bucket in $buckets; do
echo deleting bucket $bucket
aws s3 rm --recursive s3://$bucket
aws s3 rb s3://$bucket
aws s3 rm --recursive s3://$bucket --profile $AWS_PROFILE --region $AWS_REGION
aws s3 rb s3://$bucket --profile $AWS_PROFILE --region $AWS_REGION
done

0 comments on commit 3d6d533

Please sign in to comment.