Skip to content

Commit

Permalink
Fix security group ingress rules (#20)
Browse files Browse the repository at this point in the history
* Bump `terraform-aws-elastic-beanstalk-environment` version to `0.3.4`

* Change Jenkins slave Security Group ingress rule
  • Loading branch information
aknysh authored Jan 23, 2018
1 parent 8e91395 commit 0db6679
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module "elastic_beanstalk_application" {

# Elastic Beanstalk Environment
module "elastic_beanstalk_environment" {
source = "git::https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment.git?ref=tags/0.3.3"
source = "git::https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment.git?ref=tags/0.3.4"
namespace = "${var.namespace}"
name = "${var.name}"
stage = "${var.stage}"
Expand Down Expand Up @@ -154,13 +154,15 @@ resource "aws_security_group" "slaves" {
description = "Security Group for Jenkins EC2 slaves"
vpc_id = "${var.vpc_id}"

# Allow the provided Security Groups to connect to Jenkins slave instances
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
from_port = 0
to_port = 0
protocol = -1
security_groups = ["${var.security_groups}"]
}

# Allow Jenkins master instance to communicate with Jenkins slave instances on SSH port 22
ingress {
from_port = 22
to_port = 22
Expand Down

0 comments on commit 0db6679

Please sign in to comment.