From 693e08b33a444b63b9474e7e168f3ca0e4076455 Mon Sep 17 00:00:00 2001 From: Claudia Agache Date: Thu, 20 Aug 2020 18:05:36 +0300 Subject: [PATCH] corrected the bucket region --- scripts/create-worm-bucket.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/create-worm-bucket.sh b/scripts/create-worm-bucket.sh index 8d531b3efe..e1238bde38 100644 --- a/scripts/create-worm-bucket.sh +++ b/scripts/create-worm-bucket.sh @@ -13,10 +13,8 @@ export AWS_SECRET_ACCESS_KEY=${CREATE_BUCKET_AWS_SECRET_KEY} export S3_BUCKET_REGION="eu-west-1" export S3_BUCKET2_NAME="travis-ags-worm-${TRAVIS_JOB_NUMBER}-b2" -export S3_PROTOCOL=s3v2 -export S3_BUCKET2_PROTOCOL=s3vTest -aws s3api create-bucket --bucket "${S3_BUCKET2_NAME}" --region us-east-1 --object-lock-enabled-for-bucket +aws s3api create-bucket --bucket "${S3_BUCKET2_NAME}" --region ${S3_BUCKET_REGION} --object-lock-enabled-for-bucket aws s3api put-object-lock-configuration \ --bucket "${S3_BUCKET2_NAME}" \ --object-lock-configuration 'ObjectLockEnabled=Enabled,Rule={DefaultRetention={Mode=COMPLIANCE,Days=1}}'