bitter-television-17247
05/04/2023, 2:03 PMimport * as awsx from "@pulumi/awsx";
import * as pulumi from '@pulumi/pulumi';
const SERVICE = `BUG_MOUNT_COUNT`
// Create a new VPC with 3 public and private subnets
const vpc = new awsx.ec2.Vpc(`${SERVICE}-VPC`);
// logs a count of 2 errrenously
<http://pulumi.log.info|pulumi.log.info>(`publicSubNetID Count = ${vpc.publicSubnetIds.apply.length.toString()}`);
<http://pulumi.log.info|pulumi.log.info>(`privateSubNetID Count = ${vpc.privateSubnetIds.apply.length.toString()}`);
calm-queen-58154
05/04/2023, 2:51 PMawsx.ec2.Vpc
resource will only use 2 of them when allocating subnets and the associated gateways" ?bitter-television-17247
05/04/2023, 2:55 PMcalm-queen-58154
05/04/2023, 3:40 PMbitter-television-17247
05/04/2023, 4:34 PMvpc.publicSubnetIds.apply.length
This non function call version of .apply.length is returning the number of parameters to apply, which = 2!fresh-spring-82225
05/04/2023, 5:42 PM