Giter Club home page Giter Club logo

Comments (5)

markCalgary avatar markCalgary commented on July 24, 2024 1

I figured a work around for us. We are planning to use EFS as a central file location for our different ECS and Lambda hosts but as EFS isn't supported yet within LocalStack, we are going to store our files on the local host and share them using the LAMBDA_DOCKER_FLAGS=-v host_folder_name:/mnt/efs . This means that files saved on the host will be shared with all our different docker images. The /mnt/efs will be the same whether running locally (volume share) or on the cloud using EFS, our code won't be able to tell any difference. Hopefully this helps people out there who are waiting on EFS support.

from localstack.

localstack-bot avatar localstack-bot commented on July 24, 2024

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

from localstack.

joe4dev avatar joe4dev commented on July 24, 2024

Hi @markCalgary 👋

I know that EFS support is not complete within LocalStack but I am just curious if this is incomplete development, there is in fact a bug?

This is a limitation of our current EFS implementation, which primarily supports API-level mocking rather than full emulation of the mounting behavior. Thanks for creating this feature request that can get upvoted 👍

Any recommendations around this would be appreciated?

Thank you for sharing the mounting workaround using LAMBDA_DOCKER_FLAGS=-v host_folder_name:/mnt/efs

from localstack.

ilya-adnymics avatar ilya-adnymics commented on July 24, 2024

@markCalgary - thanks for the workaround! We have a pretty similar setup with EFS being the centralized storage for ECS and lambdas. Did you encounter issues with permissions when accessing the mounted volume from within e.g. lambda containers? I had to add couple more docker flags to make it work, but was just curious if there's a better way to do it. My current flags (as example with user id 1000):

LAMBDA_DOCKER_FLAGS=-v host_folder_name:/mnt/efs -v /etc/passwd:/etc/passwd:ro -u 1000:1000

I.e. I need to explicitly set the user to the one owning the host_folder_name and then mount /etc/passwd to have this same user within lambda container.

from localstack.

markCalgary avatar markCalgary commented on July 24, 2024

@ilya-adnymics happy to see my workaround worked for you. I didn't have the same permissions issue that you experienced I'm guessing because I'm on a Windows host. Next week these changes will be run on a Mac host so I'm assuming your solution will come into play for him. Thanks for the additional info.

from localstack.

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.