Giter Site home page Giter Site logo

Comments (3)

dsole avatar dsole commented on August 27, 2024

You're trying to access localstack with the hostname test.localstack
Does it work if you use the hostname localstack as per the container's name ?

from docker-lambda.

rvolgers avatar rvolgers commented on August 27, 2024

Hey, I know this issue is old but since I think I know the answer I'll leave it here in case anyone else has this problem.

S3 has some problems with localstack because it likes to prepend the bucket name to the hostname. So in this case, the bucket name was probably 'test'. Now this host alias probably doesn't exist, so it fails.

The solution is to use the 's3ForcePathStyle: true,' option (pass it to the AWS.S3 constructor, for example). This stops it from mangling path names and S3 should now work as expected.

from docker-lambda.

mhart avatar mhart commented on August 27, 2024

Closing this as outdated

from docker-lambda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.