https://pulumi.com logo
Title
i

icy-jordan-58549

10/20/2020, 3:05 PM
hey, team. Is it possible to add rules / frontends to FrontDoor from another stack? I can imagine we can get the resource by https://www.pulumi.com/docs/reference/pkg/azure-nextgen/network/getfrontdoor/, but can edit it?
will pulumi understand if I just do frontdoor.frontendsPools = [];
g

gentle-diamond-70147

10/20/2020, 5:47 PM
The lookup functions like
GetFrontDoor
return "read-only" views of those resources so you cannot modify them that way.
I think there is not a way to achieve what you're asking for. You can import a resource (https://www.pulumi.com/docs/intro/concepts/programming-model/#import), but that would mean your FrontDoor resource is in two stacks and would cause a conflict when you did an
up
in both stacks.
i

icy-jordan-58549

10/21/2020, 9:51 AM
@gentle-diamond-70147 cool, thanks!
probably creation of another frontdoor instance is fine with me as for now