AWS Lambda functions with a static IP

The problem

The solution

  1. Create a new VPC to run your code in (or use an existing VPC)
  2. Create a new Internet Gateway to communicate with the Internet from inside your VPC
  3. Create a Public Subnet and add a new route to the route table which routes to your Internet Gateway from 0.0.0.0/0
  4. Create a new Elastic IP address.
  5. Create a new NAT Gateway and assign it to the Public Subnet and Elastic IP address that you just created.
  6. Create a Private Subnet and add a new route to the route table which routes to your NAT Gateway from 0.0.0.0/0

--

--

--

UK-based Technology Consultant working in London and Manchester.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A Poker game in my Retrospective

CS371p Fall 2021: Avery Crawley

Turn your conversations into Trello tasks with Webex and Botkit

What exactly happened on Game Night?

OOP Concepts

Hedge for Windows is here!

Localization Testing-Selenium, NLP & Machine Learning

Deploy a serverless flask application on AWS Lambda

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matthew Leak

Matthew Leak

UK-based Technology Consultant working in London and Manchester.

More from Medium

AWS Cost Anomaly Detection

Let’s talk about the Encryption and Security of AWS — S3

Compliance Checking in AWS

Managing Logs for AWS Storage Infrastructure: S3, EBS, and EFS