We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a3e06 commit 57fe97dCopy full SHA for 57fe97d
terraform/scripts/empty_bucket.sh
@@ -8,8 +8,8 @@ AWS_REGION="$2"
8
9
# Check if the bucket exists
10
if ! aws s3api head-bucket --bucket "$BUCKET_NAME" --region "$AWS_REGION" 2>/dev/null; then
11
- echo "Error: Bucket $BUCKET_NAME does not exist in region $AWS_REGION."
12
- exit 1
+ echo "Bucket $BUCKET_NAME does not exist in region $AWS_REGION."
+ exit 0
13
fi
14
15
echo "Deleting all objects and versions from bucket $BUCKET_NAME in region $AWS_REGION"
0 commit comments