https://github.com/customink/lamby-vpc
π¦Ύπ Simple VPC for RDS Proxy Tutorial with Rails & Lambda
https://github.com/customink/lamby-vpc
aws-lambda aws-sam aws-sam-cli cdk fullstack-serverless lambda rails rds rds-proxy ruby-on-rails vpc
Last synced: 3 months ago
JSON representation
π¦Ύπ Simple VPC for RDS Proxy Tutorial with Rails & Lambda
- Host: GitHub
- URL: https://github.com/customink/lamby-vpc
- Owner: customink
- License: mit
- Archived: true
- Created: 2020-07-27T11:26:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T14:32:51.000Z (about 5 years ago)
- Last Synced: 2025-07-11T06:46:53.351Z (3 months ago)
- Topics: aws-lambda, aws-sam, aws-sam-cli, cdk, fullstack-serverless, lambda, rails, rds, rds-proxy, ruby-on-rails, vpc
- Language: Shell
- Homepage: https://lamby.custominktech.com/docs/database_connections
- Size: 32.2 KB
- Stars: 2
- Watchers: 40
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My CDK VPC
Very simple [CDK](https://aws.amazon.com/cdk/) TypeScript project to create a new VPC. Made for learning as part of the [Lamby with Database Connections](https://lamby.custominktech.com/docs/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`.
```shell
$ ./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.
```shell
$ ./bin/deploy
```