Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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