dumpnet-argo/terraform/security_group.tf

73 lines
1.3 KiB
Terraform
Raw Normal View History

resource "aws_security_group" "talos" {
name = "talos-${var.cluster_name}"
description = "Talos cluster security group"
vpc_id = var.vpc_id
ingress {
description = "Talos API"
from_port = 50000
to_port = 50000
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "Kubernetes API"
from_port = 6443
to_port = 6443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "HTTP"
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "HTTPS"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "Intra-cluster"
from_port = 0
to_port = 0
protocol = "-1"
self = true
}
2026-09-14 13:37:00 -04:00
ingress {
description = "MediaMTX RTMP ingest"
from_port = 1935
to_port = 1935
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "MediaMTX WebRTC ICE"
from_port = 8189
to_port = 8189
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
tags = {
Name = "talos-${var.cluster_name}"
}
}