Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from sclausson/fix-allowed-ssh-group-id
Browse files Browse the repository at this point in the history
Fix incorrect var reference in inbound ssh sg ids
  • Loading branch information
brikis98 authored Oct 9, 2017
2 parents 7c7dbff + b0e646b commit cf34be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/vault-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ resource "aws_security_group_rule" "allow_ssh_inbound_from_cidr_blocks" {
}

resource "aws_security_group_rule" "allow_ssh_inbound_from_security_group_ids" {
count = "${length(var.allowed_inbound_security_group_ids)}"
count = "${length(var.allowed_ssh_security_group_ids)}"
type = "ingress"
from_port = "${var.ssh_port}"
to_port = "${var.ssh_port}"
protocol = "tcp"
source_security_group_id = "${element(var.allowed_inbound_security_group_ids, count.index)}"
source_security_group_id = "${element(var.allowed_ssh_security_group_ids, count.index)}"

security_group_id = "${aws_security_group.lc_security_group.id}"
}
Expand Down

0 comments on commit cf34be4

Please sign in to comment.