terraform-aviatrix-modules / terraform-aviatrix-mc-overlap-nat-spoke

This configures Aviatrix spoke gateways to deal with IP overlap in the spoke VNET/VPC by adding NAT rules and route propagation
Apache License 2.0
0 stars 7 forks source link

Failed to configure policies for 'customized_snat' #4

Closed patelavtx closed 1 year ago

patelavtx commented 2 years ago

Module version 1.0.4 -

  1. When applying/modifying NAT on single spoke g/w (i.e. non HA) the following error is seen (see attached screenshot below)

  2. Modifying module local variable in variables.tf addresses the issue/error:

FROM:

_locals { is_ha = var.spoke_gw_object.ha_gwsize != null }

TO:

locals { is_ha = var.spoke_gw_object.ha_gw_size != "" }

custom_snatIssue

Dennizz commented 1 year ago

Fix has been merged. Needs testing and validation before releasing a new version and closing the issue.

patelavtx commented 1 year ago

Adding only this line resolved the above error (module version 1.0.4)

locals { is_ha = var.spoke_gw_object.ha_gw_size != "" }

The following resulted in same error:

is_ha = var.spoke_gw_object.ha_gw_size != null || var.spoke_gw_object.ha_gw_size != "" or is_ha = var.spoke_gw_object.ha_gw_size != "" || var.spoke_gw_object.ha_gw_size != null

Dennizz commented 1 year ago

Addressed in 1.0.6