Files
dumbserver/terraform/security.tf
2022-09-30 15:59:36 -05:00

30 lines
547 B
HCL

resource "aws_security_group" "ingress-all-test" {
name = "allow-all-sg"
tags = {
"Name" = "tf-allow-all-sg"
}
vpc_id = "${aws_vpc.test-env.id}"
ingress {
cidr_blocks = [
"0.0.0.0/0"
]
from_port = 22
to_port = 22
protocol = "tcp"
}
ingress {
cidr_blocks = [
"0.0.0.0/0"
]
from_port = 1280
to_port = 1280
protocol = "tcp"
}
// Terraform removes the default rule
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}