mirror of
https://github.com/kasmtech/terraform.git
synced 2026-01-23 02:24:11 +00:00
26 lines
No EOL
568 B
HCL
26 lines
No EOL
568 B
HCL
resource "aws_security_group" "kasm-agent-sg" {
|
|
name = "${var.project_name}-${var.zone_name}-kasm-agent-access"
|
|
description = "Allow access to agents"
|
|
vpc_id = "${aws_vpc.kasm-default-vpc.id}"
|
|
|
|
ingress {
|
|
from_port = 22
|
|
to_port = 22
|
|
protocol = "tcp"
|
|
cidr_blocks = ["${var.ssh_access_cidr}"]
|
|
}
|
|
|
|
ingress {
|
|
from_port = 443
|
|
to_port = 443
|
|
protocol = "tcp"
|
|
cidr_blocks = ["0.0.0.0/0"]
|
|
}
|
|
|
|
egress {
|
|
from_port = 0
|
|
to_port = 0
|
|
protocol = "-1"
|
|
cidr_blocks = ["0.0.0.0/0"]
|
|
}
|
|
} |