sparse-intern-71089
09/28/2022, 10:21 AMsome-continent-7311
09/28/2022, 10:23 AM^1.0.0
to Pulumi ^3.0.0
and have to replace requireOutputSync
(deprecated) with requireOutput
but can’t quite figure out how to make the code async.ripe-russia-4239
09/28/2022, 11:52 AMsome-continent-7311
09/28/2022, 12:45 PMinterpolate
can help me here.ripe-russia-4239
09/28/2022, 1:10 PMOutput<any>
to Output<string[]>
first, like so:
const tenantIds = await clusterConfig.requireOutput("tenantIds") as Output<string[]>
tenantIds.apply(ids => {
// ...
for (let tenantId of ids) {
// ...
}
}
some-continent-7311
09/28/2022, 1:12 PMlittle-cartoon-10569
09/28/2022, 7:49 PMlittle-cartoon-10569
09/28/2022, 7:50 PMlittle-cartoon-10569
09/28/2022, 7:51 PMlittle-cartoon-10569
09/28/2022, 7:51 PMsome-continent-7311
09/29/2022, 7:21 AMrequireOutputValue
.