Skip to content

Commit

Permalink
aws: fix ICMP ACL
Browse files Browse the repository at this point in the history
There was a typo in the rule that allowed icmp - it accidentally blocked
all icmp.

Also, fix the ip block to match for both master and workers.
  • Loading branch information
squeed committed Apr 10, 2019
1 parent ee5d518 commit e131a74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions data/data/aws/vpc/sg-master.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ resource "aws_security_group_rule" "master_ingress_icmp" {

protocol = "icmp"
cidr_blocks = ["${data.aws_vpc.cluster_vpc.cidr_block}"]
from_port = 0
to_port = 0
from_port = -1
to_port = -1
}

resource "aws_security_group_rule" "master_ingress_ssh" {
Expand Down
6 changes: 3 additions & 3 deletions data/data/aws/vpc/sg-worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ resource "aws_security_group_rule" "worker_ingress_icmp" {
security_group_id = "${aws_security_group.worker.id}"

protocol = "icmp"
cidr_blocks = ["0.0.0.0/0"]
from_port = 0
to_port = 0
cidr_blocks = ["${data.aws_vpc.cluster_vpc.cidr_block}"]
from_port = -1
to_port = -1
}

resource "aws_security_group_rule" "worker_ingress_ssh" {
Expand Down

0 comments on commit e131a74

Please sign in to comment.