Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ locals {
ipv6_egress_only_configured = local.ipv6_enabled && length(var.ipv6_egress_only_igw_id) > 0

public4_enabled = local.public_enabled && local.ipv4_enabled
public6_enabled = local.public_enabled && local.ipv6_enabled
public6_enabled = local.public_enabled && local.ipv6_enabled && var.public_ipv6_enabled
private4_enabled = local.private_enabled && local.ipv4_enabled
private6_enabled = local.private_enabled && local.ipv6_enabled
private6_enabled = local.private_enabled && local.ipv6_enabled && var.private_ipv6_enabled

public_dns64_enabled = local.public6_enabled && var.public_dns64_nat64_enabled
# Set the default for private_dns64_enabled to true unless there is no IPv4 egress to enable it.
Expand Down
14 changes: 14 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,20 @@ variable "ipv6_enabled" {
nullable = false
}

variable "private_ipv6_enabled" {
type = bool
description = "Set `false` to disable IPv6 addresses in private subnets"
default = true
nullable = false
}

variable "public_ipv6_enabled" {
type = bool
description = "Set `false` to disable IPv6 addresses in public subnets"
default = true
nullable = false
}

variable "ipv4_cidr_block" {
type = list(string)
description = <<-EOT
Expand Down