This commit is contained in:
Edward Viaene
2016-10-12 16:10:31 +00:00
parent 9d3c2936ea
commit 2cdc2aec7b
6 changed files with 168 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
resource "aws_security_group" "allow-ssh" {
vpc_id = "${aws_vpc.main.id}"
name = "allow-ssh"
description = "security group that allows ssh and all egress traffic"
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
from_port = 22
to_port = 22
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
tags {
Name = "allow-ssh"
}
}