Skip to content

Commit e63b7e9

Browse files
authored
Fix InvalidLocationConstraint when calling the CreateBucket operation for us-east-1
1 parent 59bae4c commit e63b7e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ const processCLI = function (cmdRun, session) {
824824
}, `Deployed ${CPROMPT}stacks${CRESET} and ${CPROMPT}functions${CRESET} managed by Simplify CLI:`)
825825
} else if (cmdRun === "INIT") {
826826
function verifyAccountAccess(options, callback, errorHandler) {
827-
const S3_OPTIONS = (options.DEPLOYMENT_REGION !== 'us-west-1' ? `--create-bucket-configuration LocationConstraint=${options.DEPLOYMENT_REGION} ` : '') + `--profile ${options.DEPLOYMENT_PROFILE} --region ${options.DEPLOYMENT_REGION}`
827+
const S3_OPTIONS = (options.DEPLOYMENT_REGION !== 'us-east-1' ? `--create-bucket-configuration LocationConstraint=${options.DEPLOYMENT_REGION} ` : '') + `--profile ${options.DEPLOYMENT_PROFILE} --region ${options.DEPLOYMENT_REGION}`
828828
exec(`aws s3api create-bucket --bucket ${options.DEPLOYMENT_BUCKET}-${options.DEPLOYMENT_REGION} ${S3_OPTIONS}`, (err, stdout, stderr) => {
829829
if (!err) {
830830
if (stderr) {

0 commit comments

Comments
 (0)