cuddly-smartphone-15267
02/17/2023, 2:11 AMawait aws.ec2.getSubnetIdsOutput({vpcId: predefined.vpcId});
and it returns an object with an ids
property of type: Output<string[]>
in the case of pulumi managed (awsx) VPC, the vpc object has a privateSubnetIds
property with a type of Output<string>[]
...
any idea how to convert them both into the same type? ie, either convert Output<string[]>
into Output<string>[]
or visa versaechoing-dinner-19531
02/17/2023, 9:42 AMOutput<string>[]
into an Output<string[]>
with the all function: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#all
The other way round is not possible.cuddly-smartphone-15267
02/20/2023, 12:50 AM