mirror of
https://github.com/autistic-symposium/backend-and-orchestration-toolkit.git
synced 2025-06-09 07:22:40 -04:00
Clean up this repo
This commit is contained in:
parent
0d4632e7dd
commit
024892437e
309 changed files with 7 additions and 15 deletions
19
kubernetes/python-cdk/ts/MSK_example/lib/Vpc.ts
Normal file
19
kubernetes/python-cdk/ts/MSK_example/lib/Vpc.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import cdk = require('@aws-cdk/core');
|
||||
import ec2 = require("@aws-cdk/aws-ec2");
|
||||
|
||||
export class VPCStack extends cdk.Stack {
|
||||
readonly Vpc: ec2.IVpc;
|
||||
|
||||
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
|
||||
super(scope, id, props);
|
||||
const current_env = this.node.tryGetContext("env.type");
|
||||
|
||||
const vpc_cidr = this.node.tryGetContext("vpc.cidr");
|
||||
const vpc_maxAzs = this.node.tryGetContext("vpc.maxAzs");
|
||||
const vpc = new ec2.Vpc(this, current_env+"Vpc", {
|
||||
cidr: vpc_cidr,
|
||||
maxAzs: vpc_maxAzs
|
||||
});
|
||||
this.Vpc = vpc;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue