From e1bcb5bc7457e8f2a66d69fd400d7107475573ac Mon Sep 17 00:00:00 2001 From: Nour Sabouny Date: Thu, 27 Jun 2024 21:59:01 +0400 Subject: [PATCH] fix the rest of s3 bucket names --- scripts/destroy | 4 ++-- scripts/provision | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/destroy b/scripts/destroy index 7fd1de3..48315e3 100755 --- a/scripts/destroy +++ b/scripts/destroy @@ -22,6 +22,6 @@ terraform destroy -input=false -auto-approve > /dev/null echo "Deleting the S3 bucket" export AWS_DEFAULT_REGION=ap-southeast-1 -aws s3 rm s3://wireguard-vpn --recursive -aws s3 rb s3://wireguard-vpn +aws s3 rm s3://wireguard --recursive +aws s3 rb s3://wireguard popd diff --git a/scripts/provision b/scripts/provision index 568032a..6e22c6c 100755 --- a/scripts/provision +++ b/scripts/provision @@ -5,10 +5,10 @@ set -e pushd terraform -if ! aws s3 ls s3://wireguard-vpn > /dev/null 2>&1; then +if ! aws s3 ls s3://wireguard > /dev/null 2>&1; then echo "Creating S3 bucket for terraform" - aws s3 mb s3://wireguard-vpn - aws s3api put-object --bucket wireguard-vpn --key terraform + aws s3 mb s3://wireguard + aws s3api put-object --bucket wireguard --key terraform else echo "S3 bucket already exists, skipping creation"; fi