brave-lizard-56518
04/24/2022, 3:49 PMnsr, _ := pulumi.NewStackReference(ctx, vpcStackRef, nil)
eip1 := nsr.GetStringOutput(pulumi.String("eip-1"))
Now what I can’t figure out is how to read “data-subnets” into a slice. Can anybody help?
"resources": [
{
"urn": "urn:pulumi:dev::vpc::pulumi:pulumi:Stack::dev",
"custom": false,
"type": "pulumi:pulumi:Stack",
"outputs": {
"data-subnets": [
"subnet-abcddaed530b25d91",
"subnet-abcdcfacd0c04fe74",
"subnet-abcd693e4a8ae4ca8"
],
"eip-1": "eipalloc-abcdcfa5cf063576d"
echoing-dinner-19531
04/24/2022, 9:22 PMGetOutput("data-subnets")
which will return any AnyOutput
. If you ApplyT
that you can get the interface{}
value inside and I think it should be castable to a string slice.brave-lizard-56518
04/24/2022, 10:08 PM