cleanup directory strucutre and fine tune
This commit is contained in:
27
terraform/security.tf
Normal file
27
terraform/security.tf
Normal file
@@ -0,0 +1,27 @@
|
||||
resource "aws_security_group" "ingress-all-test" {
|
||||
name = "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"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user