Skip to content

Commit

Permalink
fix(scripts): set correct aws bucket region when deploying (#16598)
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin authored Oct 24, 2024
1 parent dcc8f76 commit d454914
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/deploy/promote-to-production.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ async function runPromoteToProduction() {
}
const s3Client = new S3Client({
apiVersion: '2006-03-01',
region: 'us-east-1',
region:
projectDomain === PROTOCOL_DESIGNER_DOMAIN ? 'us-east-1' : 'us-east-2',
credentials: productionCredentials,
})

Expand Down
3 changes: 2 additions & 1 deletion scripts/deploy/promote-to-staging.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ async function runPromoteToStaging() {

const s3WithCreds = new S3Client({
apiVersion: '2006-03-01',
region: 'us-east-1',
region:
projectDomain === PROTOCOL_DESIGNER_DOMAIN ? 'us-east-1' : 'us-east-2',
credentials: stagingCredentials,
})
console.log(`Promoting ${projectDomain} from sandbox to staging\n`)
Expand Down
3 changes: 2 additions & 1 deletion scripts/deploy/rollback.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ async function runRollback() {

const s3Client = new S3Client({
apiVersion: '2006-03-01',
region: 'us-east-1',
region:
projectDomain === PROTOCOL_DESIGNER_DOMAIN ? 'us-east-1' : 'us-east-2',
credentials: rollBackCredentials,
})

Expand Down

0 comments on commit d454914

Please sign in to comment.