salmon-musician-36333
04/25/2023, 12:29 AMOutput<List<T>>
other than apply(l => l.map(...))
? I've been looking at (1), which suggests it's best not to create resources in an .apply
, and (2) which suggests that sometimes this is the only way to do it.
1. https://www.pulumi.com/docs/intro/concepts/inputs-outputs/#apply
2. https://github.com/pulumi/pulumi/issues/5392echoing-dinner-19531
04/25/2023, 8:11 AMsalmon-musician-36333
04/25/2023, 4:14 PMapply
is still necessary. Ended up refactoring to make it static in the case I was looking at.
Care to share any of your ideas? ;)echoing-dinner-19531
04/25/2023, 4:35 PMmustApply
function so we can at least error out that you have resources trying to be created in preview, but --targets
would allow you to still run an up
without that error blocking the whole operation (this is exactly the same behaviour as TF)
2 is adding a applyMap function that would let the engine understand iteration, so it wouldn't be able to say how many resources we're going to be made but it could say 0 or more.