sparse-intern-71089
09/28/2021, 6:41 PMred-match-15116
09/28/2021, 6:48 PMpreview
is unfortunately incorrect. At the time of preview, pulumi doesn’t know the actual type, however we incorrectly print that as Output<string>
when it should just be Output
. There’s an issue one sec.red-match-15116
09/28/2021, 6:49 PMpolite-mechanic-60124
09/28/2021, 6:55 PMpolite-mechanic-60124
09/28/2021, 6:57 PMred-match-15116
09/28/2021, 7:25 PMOutput.all
is always either Output[List]
or Output[Mapping]
- it’s just that the CLI output is misleading…red-match-15116
09/28/2021, 7:26 PMoutput<?>
or output<T>
? Instead of output<string>
?polite-mechanic-60124
09/28/2021, 7:34 PMpolite-mechanic-60124
09/28/2021, 7:35 PMred-match-15116
09/28/2021, 8:32 PMpreview
it’s just not resolved because each item within the Output.all is not known.red-match-15116
09/28/2021, 8:33 PMred-match-15116
09/28/2021, 8:44 PMpreview
is unknown and in all following updates it is known at preview time. So during the first preview there are no outputs… I’m still not sure you want to be passing this information to another job during preview
as the outputs are unresolved.
You can use pulumi.runtime.is_dry_run()
to determine whether you are running a preview or not.red-match-15116
09/28/2021, 8:45 PMpolite-mechanic-60124
09/28/2021, 9:50 PM