fix: Create false and avoid waiting forever for a non-existent cluster to respond (#789)

This commit is contained in:
Daniel Piddock
2020-03-18 08:54:57 +01:00
committed by GitHub
parent 2c98a00b21
commit e8a1ce17d8
3 changed files with 34 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ resource "aws_eks_cluster" "this" {
}
resource "null_resource" "wait_for_cluster" {
count = var.manage_aws_auth ? 1 : 0
count = var.create_eks && var.manage_aws_auth ? 1 : 0
depends_on = [
aws_eks_cluster.this[0]