I have a use case to add two EFS filesystems to lambda. But the File System config tab for AWS lambda allows me to add only one EFS file system.
Is there any way to accomplish this? If it is not possible, is there any alternate solution, like creating a logical symlink EFS that points to the other two existing EFS?
2
Answers
Currently looks to be unsupported by the CDK: https://github.com/aws/aws-cdk/issues/14885.
Although I have not tried to mount them to a Lambda, I know it’s fairly simple to mount multiples on EC2 instance, so should be possible. Make sure your policy contains at least these three actions:
And try to mount:
Use EFS access points. You can add a list of EFS access points to a Lambda where each access point is connected to a different EFS instance. AWS EFS Lambda confifuration