Require the user to specify the AZ for the subnet

This commit is contained in:
hamilcarBarca17
2023-03-08 15:33:07 -07:00
parent 87538d511f
commit a06e201c93
5 changed files with 15 additions and 17 deletions
+3 -1
View File
@@ -14,6 +14,7 @@ const ACCOUNT_ID = "PLACEHOLDER"
const REGION = "us-east-1"
const VPC_ID = 'PLACEHOLDER'
const SUBNET_ID = 'PLACEHOLDER'
const SUBNET_AVAILABILITY_ZONE = 'PLACEHOLDER'
const user = app.node.tryGetContext("user");
if (!user) {
@@ -47,5 +48,6 @@ new G4ADStack(app, `TeamBuildingCloudGaming-${user}`, {
},
user,
vpcId: VPC_ID,
subnetId: SUBNET_ID
subnetId: SUBNET_ID,
subnetAvailabilityZone: SUBNET_AVAILABILITY_ZONE
});