Skip to content

Commit

Permalink
Update workon.sh (#2039)
Browse files Browse the repository at this point in the history
Co-authored-by: jawadqur <[email protected]>
  • Loading branch information
grugna and jawadqur authored Apr 30, 2024
1 parent 40be00d commit ec4053e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen3/bin/workon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if [[ ! -f "$bucketCheckFlag" && "$GEN3_FLAVOR" == "AWS" ]]; then
}
EOM
)
gen3_aws_run aws s3api create-bucket --acl private --bucket "$GEN3_S3_BUCKET" --create-bucket-configuration ‘{“LocationConstraint”:“‘$(aws configure get $GEN3_PROFILE.region)‘“}’
gen3_aws_run aws s3api create-bucket --acl private --bucket "$GEN3_S3_BUCKET" $([[ $(aws configure get $GEN3_PROFILE.region) = "us-east-1" ]] && echo "" || echo --create-bucket-configuration LocationConstraint="$(aws configure get $GEN3_PROFILE.region)")
sleep 5 # Avoid race conditions
if gen3_aws_run aws s3api put-bucket-encryption --bucket "$GEN3_S3_BUCKET" --server-side-encryption-configuration "$S3_POLICY"; then
touch "$bucketCheckFlag"
Expand Down

0 comments on commit ec4053e

Please sign in to comment.