fast-vr-6049
01/19/2023, 12:05 AMSubResourceArgs
. For example, you define FrontendPorts
for the Gateway inside the resource declaration, but when you later set up the HttpListeners
, you need to refer back to the FrontendPorts
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 FrontendPorts
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 self.Id
)? 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-39005
01/19/2023, 1:37 PMapply
. Could you use this approach as well?fast-vr-6049
01/19/2023, 10:35 PM