sparse-intern-71089
04/03/2022, 6:18 PMechoing-dinner-19531
04/03/2022, 7:27 PMprivateSubnets()
method? https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/ec2/#Vpc-privateSubnetsbitter-psychiatrist-55958
04/03/2022, 7:35 PMSubnet ID to create the ENI in.
Type 'Promise<Subnet[]>' is not assignable to type 'Input<string>'.
Type 'Promise<Subnet[]>' is not assignable to type 'Promise<string>'.
Type 'Subnet[]' is not assignable to type 'string'.ts(2322)
networkInterface.d.ts(339, 5): The expected type comes from property 'subnetId' which is declared here on type 'NetworkInterfaceArgs'
echoing-dinner-19531
04/03/2022, 7:36 PMoutput(vpc.privateSubnets()).apply(subnets => subnet[0].id)
?bitter-psychiatrist-55958
04/03/2022, 7:40 PMsubnetId: output(vpc.getSubnets("private").then(subnet => subnet[0].id)),
gets the type error to go away 😄 lets see if it actually works!bitter-psychiatrist-55958
04/03/2022, 7:44 PM