mammoth-father-63881
11/28/2023, 10:22 AMCustomResourceOptions
of a Pulumi resource does not accept output values I need to resolve this value before running the pulumi program, but when I try to resolve the promise of`getOutputValue`of a StackReference
I get the following error message (since the output on the stack reference is a secret)
Cannot call 'getOutputValue' if the referenced stack output is a secret. Use 'getOutput' instead.
Are there any ways around this issue? I would like to be able to preview the changes to my resource, so I can't put the creation of the resource into the apply callback.little-cartoon-10569
11/28/2023, 9:51 PMpulumi import
to put the resource in your state, or you use the import opt in your code for a single run or pulumi up
, then remove it.
Is this the case for your use-case? If it is, you shouldn't need to call getOutput or getOutputValue. Just use pulumi stack output
to get the value on the console, and write your import code using that.mammoth-father-63881
11/29/2023, 6:50 AMlittle-cartoon-10569
11/29/2023, 6:47 PMgetOutput()
. This won't affect the creation of the resource if you're not using this value for the name: outputs can be passed into the constructor's args parameter. Just don't use this value in the name parameter.little-cartoon-10569
11/29/2023, 6:49 PM