freezing-artist-36980
09/11/2022, 6:41 AMconst vpcConnector = new awsc.apprunner.VpcConnector("vpc-connector", {
securityGroups: [ec2SecurityGroup.id],
subnets: [pulumi.output(vpc.getSubnetsIds)], // ERROR HERE
});
It shows 1. Type 'Output<(type: VpcSubnetType) => Promise<Output<string>[]>>[]' is not assignable to type 'Input<Input<string>[]>'.
steep-sunset-89396
09/11/2022, 8:56 AMpulumi.output()
2. if you created the vpc
yourself (recommended), then you will need to create the subnet(s) as well. Then using mySubnet.id
will work.
Have you had a look at the example repository? https://github.com/pulumi/examplesfreezing-artist-36980
09/11/2022, 11:39 AMawsx
which includes private and public subnets already I believe. I think I will just have to get those subnet IDs if I'm not wrong, I just don't know how.average-tiger-58107
09/11/2022, 12:36 PMvpc.publicSubnetIds
and vpc.privateSubnetIds