mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-01-29 15:13:53 +00:00
dual stack websockets and other subnets as we'll need v4 for service discovery
This commit is contained in:
parent
aad42149d1
commit
583066081b
2
vpc.tf
2
vpc.tf
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user