Skip to content

Commit

Permalink
add delay for add-ons creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nerahou committed Apr 2, 2024
1 parent 4aa59ce commit ce63a51
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ locals {
}
}

# delays creation of add-ons after aws_eks_cluster
resource "time_sleep" "wait_3_minutes" {
depends_on = [aws_eks_cluster.quortex]

create_duration = "3m"
}

# Eks addons
resource "aws_eks_addon" "quortex_addon" {
for_each = { for k, v in var.cluster_addons : k => v }
Expand Down
4 changes: 4 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ terraform {
source = "hashicorp/tls"
version = ">=3.4.0"
}
time = {
source = "hashicorp/time"
version = ">=0.11.1"
}
}
}

0 comments on commit ce63a51

Please sign in to comment.