Terraform all resources, update encryption scheme, add ingress

This commit is contained in:
Ian Keane 2026-08-17 10:22:06 -04:00
parent b34b075d10
commit 3b85d6e85b
20 changed files with 731 additions and 970 deletions

23
terraform/network.tf Normal file
View file

@ -0,0 +1,23 @@
resource "aws_subnet" "talos" {
vpc_id = var.vpc_id
cidr_block = "172.31.128.0/24"
availability_zone = "us-east-1c"
map_public_ip_on_launch = false
tags = {
Name = "talos-${var.cluster_name}"
}
}
resource "aws_route_table_association" "talos" {
subnet_id = aws_subnet.talos.id
route_table_id = data.aws_route_table.default.id
}
data "aws_route_table" "default" {
vpc_id = var.vpc_id
filter {
name = "association.main"
values = ["true"]
}
}