Terraform all resources, update encryption scheme, add ingress
This commit is contained in:
parent
b34b075d10
commit
3b85d6e85b
20 changed files with 731 additions and 970 deletions
23
terraform/network.tf
Normal file
23
terraform/network.tf
Normal 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"]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue