Skip to content

Commit 6991e6d

Browse files
authored
Merge pull request #170 from adampointer/bug/private_assign_ipv6_address_on_creation
Set assign_ipv6_address_on_creation if private dualstack
2 parents 528d8b9 + 60683e6 commit 6991e6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ resource "aws_subnet" "private" {
238238
ipv6_cidr_block = can(local.calculated_subnets_ipv6[split("/", each.key)[0]][split("/", each.key)[1]]) ? local.calculated_subnets_ipv6[split("/", each.key)[0]][split("/", each.key)[1]] : null
239239
ipv6_native = contains(local.subnets_with_ipv6_native, split("/", each.key)[0]) ? true : false
240240
map_public_ip_on_launch = contains(local.subnets_with_ipv6_native, split("/", each.key)[0]) ? null : false
241-
assign_ipv6_address_on_creation = contains(local.subnets_with_ipv6_native, split("/", each.key)[0]) ? true : try(var.subnets[each.key].assign_ipv6_address_on_creation, false)
242-
enable_resource_name_dns_aaaa_record_on_launch = contains(local.subnets_with_ipv6_native, split("/", each.key)[0]) ? true : try(var.subnets[each.key].enable_resource_name_dns_aaaa_record_on_launch, false)
241+
assign_ipv6_address_on_creation = contains(local.subnets_with_ipv6_native, split("/", each.key)[0]) ? true : try(var.subnets[split("/", each.key)[0]].assign_ipv6_address_on_creation, false)
242+
enable_resource_name_dns_aaaa_record_on_launch = contains(local.subnets_with_ipv6_native, split("/", each.key)[0]) ? true : try(var.subnets[split("/", each.key)[0]].enable_resource_name_dns_aaaa_record_on_launch, false)
243243

244244
tags = merge(
245245
{ Name = "${local.subnet_names[split("/", each.key)[0]]}-${split("/", each.key)[1]}" },

0 commit comments

Comments
 (0)