This commit is contained in:
Edward Viaene
2016-10-13 08:29:54 +00:00
parent 763a1674a8
commit 694bfbfb48
3 changed files with 137 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 = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
tags {
Name = "allow-ssh"
}
}