AWS Lambda using Elastic IP without NAT Gateway

AWS Lambda → Elastic IP → Internet

Create a Lambda function with public Elastic IP without provisioning NAT Gateway

This sample project demonstrates how to create an AWS Lambda function with a public Elastic IP without provisioning a NAT Gateway. This approach saves costs in a non-production environment.

< 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-elastic-ip-no-nat-gateway-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Majd Soufan

Majd Soufan

Majd is an AWS 5x Certified Cloud Enthusiast who love building solutions with focus on Serverless and Database. (Mohamad's twin brother)

Follow on LinkedIn

Mohamad Soufan

Mohamad Soufan

Mohamad is an AWS 5x Certified Cloud Enthusiast who love building solutions with focus on Serverless and Networking. (Majd's twin brother)

Follow on LinkedIn