Skip to content

Commit

Permalink
Fix premature Internet Gateway destroy
Browse files Browse the repository at this point in the history
Unfortunately, Terraform tries to delete the internet gateway before
kops-created instance are destroyed. Adding an explicit kops-cluster ->
internet gateway dependency seems to be the canonical way to fix the
issue.
  • Loading branch information
elafarge committed Aug 30, 2017
1 parent 129eb8e commit 359626e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kops-cluster/networking.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ resource "aws_vpc" "main" {
enable_dns_support = true

tags {
Name = "${var.cluster-name}"
Origin = "Terraform"
KubernetesCluster = "${var.cluster-name}"
Name = "${var.cluster-name}"
Origin = "Terraform"
}
}

Expand Down

0 comments on commit 359626e

Please sign in to comment.