Open Nicoxys opened 3 years ago
@Nicoxys Thanks for your report!! As long as I read what you said, I guess it was caused by using HTTPS to access S3. Please try the following code at initializing the S3 object.
endpoint: new AWS.Endpoint('http://localhost:9501'),
Default Port: 4569
endpoint: new AWS.Endpoint('localhost:9501'),
-> endpoint: new AWS.Endpoint('localhost:4569'),
I have the same issue and a similar simple setup except that I'm using new AWS.Endpoint('http://localhost:4569')
"UnknownEndpoint: Inaccessible host: `localhost'. This service may
not be available in the `us-east-1' region.
I had to deal with this issue today, turns out I was passing the incorrect attribute when configuring the S3 service, forcePathStyle: true
is for SDK 3, make sure you pass s3ForcePathStyle: true
if you are using AWS SDK 2
Hi!
I state that I am only doing some simple tests to see if all this is for me. First, an example.
serverless.yml:
src/hello.ts:
So... With this setup, I receive this error:
It seems like that it cannot connect to local s3.
Obv I use
serverless offline start
to start all the services. Am i missing something?