Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

customink/lamby-vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My CDK VPC

Lamby: Simple Rails & AWS Lambda Integration using Rack.Very simple CDK TypeScript project to create a new VPC. Made for learning as part of the Lamby with Database Connections guides. See deploy section for configuraiton optoins.

Use this project if you do not want to use your default AWS VPC or if for some reason you want to setup a new one.

Bootstrap & Setup

All that is needed is Docker and your AWS account setup. This will install the Docker container and run npm setup.

$ ./bin/bootstrap
$ ./bin/setup

Deploy

Creates a VPC with a CIDR of 172.16.0.0/16. If needed you can change this in the code. Other common values include 10.0.0.0/16 or 192.168.0.0/16.

If needed you can export or pass an AWS_PROFILE (defaults to "default") environment variable. This will automatically set the CDK_DEFAULT_ACCOUNT value. Likewise, you can pass or export AWS_DEFAULT_REGION (defaults to us-east-1) too.

$ ./bin/deploy