Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

AWS SDK V3 #415

Open
jlgouwyapizr opened this issue Nov 8, 2021 · 2 comments
Open

AWS SDK V3 #415

jlgouwyapizr opened this issue Nov 8, 2021 · 2 comments

Comments

@jlgouwyapizr
Copy link

Hey there,

Since I use SDK V3 and the client-s3, I always receive :

getaddrinfo ENOTFOUND local-my-name-bucket.localhost

Do you have an example which work ? or is not compatible at all ?

I tried different configuration, but seems not working :

if(process.env.IS_OFFLINE) {
  awsParams = {
    credentials: {
      accessKeyId: 'S3RVER', 
      secretAccessKey: 'S3RVER',
    },
    endpoint: 'http://localhost:4569',
  }
}
const s3 = new S3(awsParams);
@kuronekomichael
Copy link

In my environment, I added forcePathStyle and it succeeded 😄

if(process.env.IS_OFFLINE) {
  awsParams = {
    credentials: {
      accessKeyId: 'S3RVER', 
      secretAccessKey: 'S3RVER',
    },
+   forcePathStyle: true,
    endpoint: 'http://localhost:4569',
  }
}
const s3 = new S3(awsParams);

@ar90n
Copy link
Owner

ar90n commented Mar 8, 2022

Hi there !
Thanks for your comments. I added an example of using AWS SDK V3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants