Skip to content

Commit

Permalink
chore: minor changes (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter-Thompson authored Apr 25, 2022
1 parent bbe6e9b commit 2cc0205
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { awscdk } = require('projen');
const { NpmAccess } = require('projen/lib/javascript');
const CDK_VERSION = '2.20.0';
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Bharat Parmar',
Expand All @@ -19,6 +20,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
peerDeps: [
`aws-cdk-lib@${CDK_VERSION}`,
],
npmAccess: NpmAccess.PUBLIC,
releaseToNpm: true,
releaseEveryCommit: true,
licensed: true, /* Indicates if a license should be added. */
Expand All @@ -30,4 +32,4 @@ const project = new awscdk.AwsCdkConstructLibrary({
// devDeps: [], /* Build dependencies for this module. */
// packageName: undefined, /* The "name" in package.json. */
});
project.synth();
project.synth();
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ cdk-vpc-module construct library is an open-source extension of the AWS Cloud De

## :sparkles: Features

- :white_check_mark: when you use default ec2.vpc module, there is no option to configure custom IPv4 CIDR(10.10.0.0/24), this module provide way to configure custom IPv4 CIDR
- :white_check_mark: VPC Peering with routetable entry
- :white_check_mark: Configurable NACL as per subnets Group
- :white_check_mark: Option to configure custom IPv4 CIDR(10.10.0.0/24)
- :white_check_mark: VPC Peering with route table entry
- :white_check_mark: Configurable NACL as per subnet group
- :white_check_mark: NATGateway as per availabilityZones


Expand All @@ -24,8 +24,7 @@ export class VPCStack extends Stack {
subnetConfiguration: [],
},
peeringConfigs: {
// when you deployed this stack , it will be create your vpc peering id, this key will be use to get that id and configure route-table as per route
"TEST-PEERING": {
"TEST-PEERING": { // this key will be used as your peering id, which you will have to mention below when you configure a route table for your subnets
peeringVpcId: "vpc-0000",
tags: {
"Name": "TEST-PEERING to CREATED-VPC",
Expand Down Expand Up @@ -74,7 +73,7 @@ export class VPCStack extends Stack {
routes: [
],
tags: {
// you are this vpc to deploy your eks cluster, you have to tag your subnets [read more](https://aws.amazon.com/premiumsupport/knowledge-center/eks-vpc-subnet-discovery/)
// if you use this vpc for your eks cluster, you have to tag your subnets [read more](https://aws.amazon.com/premiumsupport/knowledge-center/eks-vpc-subnet-discovery/)
'kubernetes.io/role/elb': '1',
'kubernetes.io/cluster/TEST-CLUSTER': 'owned',
},
Expand All @@ -99,14 +98,14 @@ export class VPCStack extends Stack {
],
routes: [
{
// if you use this vpc for your eks cluster, you have to tag your subnets [read more](https://aws.amazon.com/premiumsupport/knowledge-center/eks-vpc-subnet-discovery/)
routerType: ec2.RouterType.VPC_PEERING_CONNECTION,
destinationCidrBlock: "<destinationCidrBlock>",
//<Your VPC PeeringConfig KEY, in this example TEST-PEERING will be your ID>
existingVpcPeeringRouteKey: "TEST-PEERING"
}
],
tags: {
// you are this vpc to deploy your eks cluster, you have to tag your subnets [read more](https://aws.amazon.com/premiumsupport/knowledge-center/eks-vpc-subnet-discovery/)
'kubernetes.io/role/internal-elb': '1',
'kubernetes.io/cluster/TEST-CLUSTER': 'owned',
},
Expand Down Expand Up @@ -155,7 +154,7 @@ Please refer [here](/API.md) to check how to use individual resource constructs.
## :clapper: Quick Start
The quick start shows you how to create **AWS-VPC** using this module.
The quick start shows you how to create an **AWS-VPC** using this module.
### Prerequisites
Expand Down Expand Up @@ -194,4 +193,4 @@ Check the changed which are to be deployed
Deploy using
```bash
~ -> npx cdk deploy
```
```
3 changes: 3 additions & 0 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2cc0205

Please sign in to comment.