Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

TinkLabs/softsim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static outbound IP for AWS Lambda

A serverless template project of AWS lambda function with static outbound IP.

This project will create a VPC with private subnets and NAT gateway which binded with Elastic IP in public subnet. The lambda function will run inside a private subnet and all requests from the function will go through NAT Gateway.

Requirement

Run it

yarn / npm install
sls deploy
# curl output endpoint, e.g. curl https://XXXXX.execute-api.us-east-1.amazonaws.com/dev/
> {"src_ip":"xx.xx.xx.xx"}

Run it locally

node index.js

Cleanup

sls remove

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published