Skip to content

Commit

Permalink
fix: provide region to S3Client
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jan 9, 2024
1 parent 4d20e8a commit de0d28f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
PRESERVE_ARTIFACTS: ${{ vars.PRESERVE_ARTIFACTS }}

integration:
Expand Down Expand Up @@ -80,7 +79,6 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
PRESERVE_ARTIFACTS: ${{ vars.PRESERVE_ARTIFACTS }}

mac-build:
Expand All @@ -102,7 +100,6 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
PRESERVE_ARTIFACTS: ${{ vars.PRESERVE_ARTIFACTS }}

deb-build:
Expand All @@ -128,6 +125,5 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
OCLIF_DEB_KEY: ${{ secrets.OCLIF_DEB_KEY }}
PRESERVE_ARTIFACTS: ${{ vars.PRESERVE_ARTIFACTS }}
2 changes: 1 addition & 1 deletion bin/dev.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env ts-node
// eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
(async () => {
;(async () => {
const oclif = await import('@oclif/core')
await oclif.execute({development: true, dir: __dirname})
})()
2 changes: 1 addition & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

// eslint-disable-next-line unicorn/prefer-top-level-await
(async () => {
;(async () => {
const oclif = await import('@oclif/core')
await oclif.execute({dir: __dirname})
})()
1 change: 1 addition & 0 deletions src/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const aws = {
credentials: this.creds,
endpoint: process.env.AWS_S3_ENDPOINT,
forcePathStyle: Boolean(process.env.AWS_S3_FORCE_PATH_STYLE),
region: process.env.AWS_REGION ?? 'us-east-1',
})
return cache.s3
} catch (error: unknown) {
Expand Down

0 comments on commit de0d28f

Please sign in to comment.