Skip to content

[AVM Module Issue]: Count causes plan failure when passed a vnet to peer to. #71

@ChrisChapman-bjss-eap

Description

@ChrisChapman-bjss-eap

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Bug

(Optional) Module Version

2.0

(Optional) Correlation Id

No response

Description

count = length(var.vnet_definition.existing_byo_vnet) == 0 && try(var.vnet_definition.vnet_peering_configuration.peer_vnet_resource_id, null) != null ? 1 : 0

try(var.vnet_definition.vnet_peering_configuration.peer_vnet_resource_id, null)

The count will fail to plan when planned alongside the creation of the vnet that we are planning to peer to, since the peer_vnet_resource_id value is unknown at the time of planning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions