Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebsto/cdk-vpc-example
CDK code to show how to create instances in a VPC
https://github.com/sebsto/cdk-vpc-example
Last synced: 6 days ago
JSON representation
CDK code to show how to create instances in a VPC
- Host: GitHub
- URL: https://github.com/sebsto/cdk-vpc-example
- Owner: sebsto
- Created: 2019-11-11T20:40:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:46:42.000Z (almost 2 years ago)
- Last Synced: 2023-05-19T00:10:15.663Z (over 1 year ago)
- Language: HTML
- Size: 1 MB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is the code supporting the AWS News Blog Post : "**VPC Ingress Routing – Simplifying Integration of Third-Party Appliances**"
The blog post is available at [https://aws.amazon.com/blogs/aws/new-vpc-ingress-routing-simplifying-integration-of-third-party-appliances/](https://aws.amazon.com/blogs/aws/new-vpc-ingress-routing-simplifying-integration-of-third-party-appliances/)
This sample CDK script demonstrates :
- how to create a VPC
- how to start EC2 instances with Role and UserData script
- how to attach a Ec2 instance to a VPC and a Security Groups**This code uses CDK v1, to see an example with CDK v2, check this repo**
[https://github.com/sebsto/cdkv2-vpc-example](https://github.com/sebsto/cdkv2-vpc-example)
# Useful commands
* `npm install` to install the depencies
* `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template