Skip to content

Commit

Permalink
fix region
Browse files Browse the repository at this point in the history
Signed-off-by: Erick Wendel <[email protected]>
  • Loading branch information
ErickWendel committed Mar 20, 2024
1 parent d3d31e6 commit c1a555b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,15 @@ services:
environment:
- DOCKER_HOST=unix:///var/run/docker.sock
- SERVICES=s3
- AWS_DEFAULT_REGION=us-east-1

test:
build: .
command: npm run test
volumes:
- .:/src
- nodemodules:/src/node_modules
restart: on-failure
depends_on:
- localstack
environment:
LOCALSTACK_HOST: localstack
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_REGION: us-east-1
volumes:
nodemodules: {}
AWS_SECRET_ACCESS_KEY: test
2 changes: 1 addition & 1 deletion src/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { S3Client, CreateBucketCommand, ListBucketsCommand, DeleteBucketCommand

const s3config = {
forcePathStyle: true,
region: process.env.AWS_REGION,
region: "us-east-1",
}
const isLocal = process.env.IS_OFFLINE

Expand Down

0 comments on commit c1a555b

Please sign in to comment.