Amazon API Gateway to AWS Lambda to EFS

HTTP API → AWS Lambda → Amazon EFS

Create an API Gateway endpoint that invokes a Lambda function with access to EFS.

This pattern explains how to deploy an AWS SAM application that includes an API Gateway and a Lambda function with Amazon EFS access.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Launch Stack

Clone repo

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

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Suman Debnath

Suman Debnath

Suman Debnath is a Principal Developer Advocate working on Amazon Elastic File System at Amazon Web Services, primarily focusing on Storage, Serverless and Machine Learning. He is passionate about large scale distributed systems and is a vivid fan of Python. His background is in storage performance and tool development, where he has developed various performance benchmarking and monitoring tools.

Follow on LinkedIn