Comments (5)
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.
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.
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.
@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.
@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)
- bug: AWS::ResourceGroups::Group parameter validation fails with valid configuration HOT 2
- bug: Docker image runs as root user HOT 1
- bug: Different behaviour from AWS for getObjectTagging on a delete marker HOT 1
- bug: "org.apache.hadoop.fs.s3a.S3AFileSystem not found" on Athena table creation HOT 1
- bug: DynamoDB delete_expired_items not working properly "Attribute name is a reserved keyword" HOT 1
- bug: Deploy .NET Lambda with CloudFormation template
- bug: Kinesis shard iterator ShardIteratorType.AFTER_SEQUENCE_NUMBER not always honoring startingSequenceNumber
- bug: Cloudfront multiple cache behavior with PathPattern is not working as expected HOT 1
- bug: HOT 9
- bug: aws client region ignored using credentialsprovider + latest localstack docker image HOT 4
- bug: kinesis cannot parse date in latest version HOT 2
- Extensions: Fixing "ModuleNotFoundError: No module named 'flask'"
- bug: AttributeError: 'NoneType' object has no attribute 'listeners' HOT 1
- bug: AttributeError: 'NoneType' object has no attribute 'to_bytes' HOT 7
- bug: Cannot connect to localstack container in jenkins at http://localhost:4566
- bug: [dynamodb] ExecuteStatementCommandOutput.ConsumedCapacity response format not faithful to AWS HOT 1
- bug: [dynamodb] NOT begins_with does not work with PartiQL
- bug: AWS SES message tags with colon are not allowed (ses:feedback-id-a/b) HOT 1
- bug: AWS Batch Job Unable to Connect to RDS Instance in LocalStack Environment HOT 1
- bug: Wrong DNS resolution when using podman HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localstack.