File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,20 @@ resource "azurerm_orchestrated_virtual_machine_scale_set" "firezone" {
2323 network_security_group_id = var. network_security_group_id
2424
2525 ip_configuration {
26- name = " internal"
26+ name = " internal-ipv4 "
2727 primary = true
2828 subnet_id = var. private_subnet
29+ version = " IPv4"
30+ }
31+
32+ dynamic "ip_configuration" {
33+ for_each = var. private_subnet_ipv6 != null ? [1 ] : []
34+ content {
35+ name = " internal-ipv6"
36+ primary = false
37+ subnet_id = var. private_subnet_ipv6
38+ version = " IPv6"
39+ }
2940 }
3041 }
3142
Original file line number Diff line number Diff line change @@ -73,10 +73,16 @@ variable "firezone_api_url" {
7373}
7474
7575variable "private_subnet" {
76- description = " The private subnet ID"
76+ description = " The private IPv4 subnet ID"
7777 type = string
7878}
7979
80+ variable "private_subnet_ipv6" {
81+ description = " The private IPv6 subnet ID"
82+ type = string
83+ default = null
84+ }
85+
8086variable "network_security_group_id" {
8187 description = " The network security group id to attach to the instances"
8288 type = string
You can’t perform that action at this time.
0 commit comments