CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
517 stars 156 forks source link

Route Servers: Support 'depends_on' for routeServerBGPConnection #1056

Closed ninjarobot closed 11 months ago

ninjarobot commented 11 months ago

The changes in this PR are as follows:

I have read the contributing guidelines and have completed the following:

If I haven't completed any of the tasks above, I include the reasons why here:

Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure:

routeServer {
    name "my-route-server"
    link_to_vnet "my-vnet"
    add_bgp_connections [
        routeServerBGPConnection {
            name "elf01"
            peer_ip "100.72.3.4"
            peer_asn 12345
        }
        routeServerBGPConnection {
            name "elf02"
            peer_ip "100.72.3.5"
            peer_asn 12345
            depends_on (ResourceId.create(Farmer.Arm.Network.routeServerBGPConnections, ResourceName "my-route-server", ResourceName "elf01"))
        }
    ]