updated vpc name
MODIFY
aws-ts-vpc-with-ecs-fargate-py/vpc-crosswalk-ts/index.ts
aws-ts-vpc-with-ecs-fargate-py/vpc-crosswalk-ts/index.ts
@@ -4,10 +4,10 @@ import * as pulumi from "@pulumi/pulumi";
// importing local configs
const config = new pulumi.Config();
const env = pulumi.getStack()
-const vpc_name = config.get("vpc_name");
-const zone_number = config.getNumber("zone_number");
-const vpc_cidr = config.get("vpc_cidr");
-const number_of_nat_gateways = config.getNumber("number_of_nat_gateways");
+const vpc_name = config.require("vpc_name");
+const zone_number = config.requireNumber("zone_number");
+const vpc_cidr = config.require("vpc_cidr");
+const number_of_nat_gateways = config.requireNumber("number_of_nat_gateways");
const config_name = "Pulumi." + `${env}` + ".yaml";
const baseTags = {
@@ -24,7 +24,8 @@ const baseTags = {
}
// Allocate a new VPC with the CIDR range from config file:
-const vpc = new awsx.ec2.Vpc(`${vpc_name}`, {
+//const vpc = new awsx.ec2.Vpc(`${vpc_name}`, {
+ const vpc = new awsx.ec2.Vpc(vpc_name, {
cidrBlock: vpc_cidr,
numberOfAvailabilityZones: zone_number,
numberOfNatGateways: number_of_nat_gateways,

updated vpc name