salmon-account-74572
10/28/2020, 5:44 PMOutput
when using a StackReference
? I know I'm a Go newbie, but...wow. I have a value that represents the number of AZs in an AWS region. I just need to get to that value, and be able to use it as a number. No matter what I try, I just run right into a brick wall of Output
limitations.billowy-army-68599
salmon-account-74572
10/28/2020, 6:38 PMctx.Export("numOfAZs", <http://pulumi.Int|pulumi.Int>(numOfAZs))
I'm then referencing it in another stack:
numOfAZsOutput := ref.GetStringOutput(pulumi.String("numOfAZs"))
I would just like to get access to that value as an integer, so that I can use it to access arrays of subnet IDs and such. No matter what I try (using various Apply
functions to the output, trying reflect
, etc.), I can't just get to the numeric value stored in that variable.billowy-army-68599
salmon-account-74572
10/30/2020, 2:20 PM