faint-motherboard-95438
09/15/2020, 4:44 PMgetSubnetIds
in the same run of the Vpc
creation:
Error: invocation of aws:ec2/getSubnetIds:getSubnetIds returned an error: invoking aws:ec2/getSubnetIds:getSubnetIds: no matching subnet found for vpc with id REDACTED
at /pulumi/projects/node_modules/@pulumi/pulumi/runtime/invoke.js:136:33
at Http2CallStream.<anonymous> (/pulumi/projects/node_modules/@grpc/grpc-js/src/client.ts:155:9)
at Http2CallStream.emit (events.js:327:22)
at Http2CallStream.EventEmitter.emit (domain.js:485:12)
at /pulumi/projects/node_modules/@grpc/grpc-js/src/call-stream.ts:186:14
at processTicksAndRejections (internal/process/task_queues.js:79:11)
We’re using pulumi.all([vpc.id]).apply(([vpcId]) => aws.ec2.getSubnetIds({…}))
but still it fails.
Running a pulumi update
again fix the problem by itself, but we obviously don’t want to have to do that.
We are using awsx.ec2.Vpc
to create the VPC and define some custom subnets.broad-gold-44713
09/15/2020, 5:53 PMconst vpc = new awsx.ec2.Vpc...
...vpc.subnetIds...
faint-motherboard-95438
09/15/2020, 6:15 PMvpc.subnetIds
does not exist. Maybe you’re referring to one of vpc.publicSubnetIds
, vpc.privateSubnetIds
or vpc.isolatedSubnetIds
but that does not fit our needs. We use getSubnetIds
because it provides a filtering capability.broad-gold-44713
09/15/2020, 6:17 PM