dual stack websockets and other subnets as we'll need v4 for service discovery

This commit is contained in:
xss 2023-08-04 17:19:26 +10:00
parent aad42149d1
commit 583066081b
2 changed files with 4 additions and 0 deletions

2
vpc.tf
View File

@ -49,6 +49,7 @@ resource "aws_subnet" "private" {
vpc_id = aws_vpc.main.id
cidr_block = each.value[0]
ipv6_cidr_block = each.value[1]
assign_ipv6_address_on_creation = true
tags = {
Name = "${each.key} - private"
}
@ -61,6 +62,7 @@ resource "aws_subnet" "public" {
vpc_id = aws_vpc.main.id
cidr_block = each.value[0]
ipv6_cidr_block = each.value[1]
assign_ipv6_address_on_creation = true
tags = {
Name = "${each.key} - public"

View File

@ -70,6 +70,8 @@ resource "aws_subnet" "ws_main" {
map_public_ip_on_launch = false
vpc_id = aws_vpc.main.id
cidr_block = "172.31.134.0/28"
ipv6_cidr_block = cidrsubnet(aws_vpc.main.ipv6_cidr_block, 8, 128)
assign_ipv6_address_on_creation = true
tags = {
Name = "wsmain"