Replies: 3 comments 1 reply
-
Hi @gdonoso94, Do you mind including your actual code? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Copyin and pasting here. I don't know if this will update the label. Sorry if this is not the procedure: Hi @RanVaknin, sorry for the delay in coming back. I basically have this s3Upload factory: ({ client }) =>
}; In the test I spin up the Localstack container like this: beforeAll(async () => { Looks like the problem arises in client.send(new CreateBucketCommand({ Bucket: "test" })). The bucket cannot be created. As far as I researched and mentioned in the previous message it has something to do with how node resolves the DNS, using dns.resolve or dns.lookup... I'm using node 18, btw. Thanks for your help |
Beta Was this translation helpful? Give feedback.
-
Just in case someone have the same problem, it gets fixed by setting the Reference: ar90n/serverless-s3-local#492 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I've been struggling with this for a while and I'm not sure if this is a bug or not, so I preferred to open a new discussion about it.
Before all: when I run this in a Linux environment (Ubuntu) it works fine, as expected.
I'm trying to test the integration of an S3 upload using testcontainers and Localstack. For that I raise the Localstack Docker container and I create a bucket named
test
, so far so good. I'm not sure whether the problem comes when I try to create the S3-Client using@aws-sdk/client-s3
or when I upload the file using theUpload
command from.@aws-sdk/lib-storage
; turns out it and it's unable to resolvetest.localhost
. This is the output:I've been reading around and looks like it has something to do with using dns.resolve() or dns.lookup() but I haven't come up with a solution yet.
Can somebody help me out here?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions