PaloAltoNetworks / terraform-google-swfw-modules

Terraform Reusable Modules for Software Firewalls on GCP
https://registry.terraform.io/modules/PaloAltoNetworks/swfw-modules/google
MIT License
5 stars 8 forks source link

Unable to add alias ip range for vm series ha module #5

Closed umangr036 closed 9 months ago

umangr036 commented 10 months ago

Describe the bug

Hi Team,

is it possible to add tf vars of how alias ip range can be given in this module. i am trying to do add it but not able to do that. the values are not getting picked up by the code

Module Version

v1.3.2

Terraform version

No response

Expected behavior

na

Current behavior

na

Anything else to add?

na

umangr036 commented 10 months ago

i think the alias_ip_ranges should be replaced with alias_ip_range. please let us know your review/comments on it. it is causing issues.

image
horiagunica commented 10 months ago

@umangr036 hello! Would you kindly share the code section with the vmseries module that you used and from which you got this error?

umangr036 commented 10 months ago

dynamic "alias_ip_range" { for_each = try(network_interface.value.alias_ip_ranges, []) content { ip_cidr_range = alias_ip_ranges.value.ip_cidr_range subnetwork_range_name = try(alias_ip_ranges.value.subnetwork_range_name, null) } } } }

alias_ip_ranges should be replaced with alias_ip_range in the block