jenkins-packer-demo

This commit is contained in:
Edward Viaene
2016-10-19 08:49:19 +00:00
parent fa907a3219
commit 21a1eaa88f
9 changed files with 236 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
resource "aws_security_group" "jenkins-securitygroup" {
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 = "jenkins-securitygroup"
}
}