This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cdk = require("@aws-cdk/core"); | |
import s3 = require("@aws-cdk/aws-s3"); | |
import iam = require("@aws-cdk/aws-iam"); | |
import build = require("@aws-cdk/aws-codebuild"); | |
import pipeline = require("@aws-cdk/aws-codepipeline"); | |
import pipeline_actions = require("@aws-cdk/aws-codepipeline-actions"); | |
import deploy = require("@aws-cdk/aws-codedeploy"); | |
export class PipelineStack extends cdk.Stack { | |
constructor(app: cdk.App, id: string, props?: cdk.StackProps) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cdk = require("@aws-cdk/core"); | |
import ec2 = require("@aws-cdk/aws-ec2"); | |
import iam = require("@aws-cdk/aws-iam"); | |
export class BastionStack extends cdk.Stack { | |
constructor(app: cdk.App, id: string, props?: cdk.StackProps) { | |
super(app, id, props); | |
const vpc = new ec2.Vpc(this, "vpc", { | |
cidr: "10.0.0.0/16", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Description": "This template deploys a VPC, with a pair of public and private subnets spread\nacross two Availability Zones. It deploys an Internet Gateway, with a default\nroute on the public subnets. It deploys a pair of NAT Gateways (one in each AZ),\nand default routes for them in the private subnets.", | |
"Parameters": { | |
"EnvironmentName": { | |
"Description": "An environment name that will be prefixed to resource names", | |
"Type": "String" | |
}, | |
"VpcCIDR": { | |
"Description": "Please enter the IP range (CIDR notation) for this VPC", | |
"Type": "String", |