From 43aeb9cf4f8f78fcc923ee9cc01f6b44edf3b90c Mon Sep 17 00:00:00 2001 From: Mo Date: Thu, 23 Jun 2022 13:58:03 -0400 Subject: [PATCH] Add default region to AWS configuration --- ci/scripts/deploy | 2 +- ci/scripts/prepare | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/scripts/deploy b/ci/scripts/deploy index a7964df4..b2e96bf9 100755 --- a/ci/scripts/deploy +++ b/ci/scripts/deploy @@ -10,4 +10,4 @@ touch index.html && aws s3 cp index.html s3://${S3_BUCKET} --region ${REGION} # invalidate cloudfront distribution echo "invalidate cloudfront distribution 🔄" -AWS_PAGER="" aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID} --paths '/docs*' \ No newline at end of file +aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID} --paths '/docs*' \ No newline at end of file diff --git a/ci/scripts/prepare b/ci/scripts/prepare index 399899a4..ce49610d 100755 --- a/ci/scripts/prepare +++ b/ci/scripts/prepare @@ -16,6 +16,7 @@ BRANCH_CLOUDFRONT_DISTRIBUTION_ID=${BRANCH}_CLOUDFRONT_DISTRIBUTION_ID BRANCH_REGION=${BRANCH}_REGION aws configure set aws_access_key_id ${!BRANCH_AWS_ACCESS_KEY_ID} aws configure set aws_secret_access_key ${!BRANCH_AWS_SECRET_ACCESS_KEY} +aws configure set region us-east-1 export S3_BUCKET=${!BRANCH_BUCKET_NAME} export CLOUDFRONT_DISTRIBUTION_ID=${!BRANCH_CLOUDFRONT_DISTRIBUTION_ID}