fast-vr-604901/19/2023, 12:05 AM
. For example, you define
for the Gateway inside the resource declaration, but when you later set up the
, you need to refer back to the
you created and you can only refer to them by Resource ID. See the snippet for an example of what I mean. Yet, we can't manually construct these Resource IDs, as we don't know the name of the Application Gateway in advance due to Pulumi's unique ID appending to the end of resource names. I also can't create them in advance, as there's no standalone
resource that I can create separately, then pass in later. My question: is there any intelligent, programmatic way to do these self-references before the Gateway has been created (something magic like
)? Or do I just need to bite the bullet, manually name Gateway and bypass the unique name generation, and manually write these Resource IDs out? Thank you!
melodic-tomato-3900501/19/2023, 1:37 PM
. Could you use this approach as well?
fast-vr-604901/19/2023, 10:35 PM