Skip to content

Commit

Permalink
Removed self reference from security group, causing resource regenera…
Browse files Browse the repository at this point in the history
…tion even when not changed
  • Loading branch information
nicusX committed Aug 12, 2016
1 parent 99ecec1 commit 27720e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions terraform/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ resource "aws_elb" "kubernetes_api" {
## Security
############

# TODO This Security Group get regenerated at every Terraform run, even when no change
resource "aws_security_group" "kubernetes" {
vpc_id = "${aws_vpc.kubernetes.id}"
name = "kubernetes"
Expand All @@ -242,7 +241,7 @@ resource "aws_security_group" "kubernetes" {
from_port = 0
to_port = 0
protocol = "-1"
self = true
cidr_blocks = ["${var.control_cidr}"]
}

# Allow all traffic from the API ELB
Expand Down

0 comments on commit 27720e8

Please sign in to comment.