sparse-intern-71089
05/07/2022, 8:12 AMlittle-cartoon-10569
05/08/2022, 8:48 PMcreateDataDogIntegration()
from? If that's in an apply()
then you'll see this behaviour. Does it actually deploy new resources? I'd guess it won't: it just can't tell at preview time that the before and after values are the same, so it shows that there's a potential difference.little-cartoon-10569
05/08/2022, 8:49 PMlittle-cartoon-10569
05/08/2022, 8:49 PMaccountId: pulumi.all([current]).apply(([c]) => c.accountId)
is exactly the same as accountId: current.accountId
.great-sunset-355
05/10/2022, 5:43 PMDuring some program executions, apply doesn’t run. For example, it won’t run during a preview, when resource output values may be unknown. Therefore, you should avoid side-effects within the callbacks. For this reason, you should not allocate new resources inside of your callbacks either, as it could lead to pulumi preview being wrong.