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