Amazon API Gateway HTTP API to AWS Lambda to EFS

HTTP API → AWS Lambda → Amazon EFS

Create an HTTP API endpoint that calls a Lambda function with EFS access.

This pattern attaches an EFS file system to your Lambda function to give it expandable, persistent storage.
This type of storage in a Lambda function opens the door to many new possibilities (multiple functions can even use the same file system).

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-efs-cdk

Deploy

cdk deploy


Testing

See testing in the README.md file in the repo

Cleanup

1. Delete the stack: npx cdk destroy.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus".
3. You see a message confirming DELETE_COMPLETE.

Created by:

Rajeeva Chaurasia

Rajeeva Chaurasia

Cloud Application Architect - Associate