Skip to content

Commit

Permalink
Remove LocationConstraint when running create-bucket s3 api call (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Jan 23, 2024
1 parent 7af1dd8 commit b5ea05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .internal/aws/scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CODE_URI="${TMPDIR}/sources"

trap "rm -rf ${TMPDIR}" EXIT

aws s3api get-bucket-location --bucket "${BUCKET}" --region "${REGION}" || aws s3api create-bucket --acl private --bucket "${BUCKET}" --region "${REGION}" --create-bucket-configuration LocationConstraint="${REGION}"
aws s3api get-bucket-location --bucket "${BUCKET}" --region "${REGION}" || aws s3api create-bucket --acl private --bucket "${BUCKET}" --region "${REGION}" --create-bucket-configuration LocationConstraint="${REGION}" || aws s3api create-bucket --acl private --bucket "${BUCKET}" --region "${REGION}"

# Check if region is in AWS GovCloud and create bucket arn
if [[ "${REGION}" == *gov* ]]; then
Expand Down

0 comments on commit b5ea05a

Please sign in to comment.