diff --git a/aws_specific_modules.tf b/aws_specific_modules.tf index b3e8529f..b2319800 100644 --- a/aws_specific_modules.tf +++ b/aws_specific_modules.tf @@ -107,7 +107,8 @@ data "aws_iam_policy_document" "eks_vpc_guardduty" { resource "aws_eks_addon" "guardduty" { depends_on = [ - module.cluster + module.cluster, + time_sleep.wait_1_minutes_after_cluster ] count = var.eks_addon_version_guardduty != null ? 1 : 0 diff --git a/harness.tf b/harness.tf index 608ef52e..0cd72b5e 100644 --- a/harness.tf +++ b/harness.tf @@ -2,7 +2,8 @@ module "harness_delegate" { count = var.harness_delegate && strcontains(lower(var.aws_account), "indico") ? 1 : 0 depends_on = [ - module.cluster + module.cluster, + time_sleep.wait_1_minutes_after_cluster ] source = "./modules/harness" diff --git a/ipa.tf b/ipa.tf index 50fcb393..d1f3e260 100644 --- a/ipa.tf +++ b/ipa.tf @@ -246,7 +246,8 @@ EOT } resource "kubernetes_secret" "issuer-secret" { depends_on = [ - module.cluster + module.cluster, + time_sleep.wait_1_minutes_after_cluster ] metadata { @@ -269,7 +270,8 @@ resource "kubernetes_secret" "issuer-secret" { #TODO: move to prereqs resource "kubernetes_secret" "harbor-pull-secret" { depends_on = [ - module.cluster + module.cluster, + time_sleep.wait_1_minutes_after_cluster ] metadata { @@ -349,7 +351,8 @@ data "github_repository_file" "data-pre-reqs-values" { module "secrets-operator-setup" { depends_on = [ - module.cluster + module.cluster, + time_sleep.wait_1_minutes_after_cluster ] count = var.secrets_operator_enabled == true ? 1 : 0 source = "./modules/common/vault-secrets-operator-setup" @@ -366,7 +369,8 @@ resource "helm_release" "ipa-vso" { depends_on = [ module.cluster, data.github_repository_file.data-crds-values, - module.secrets-operator-setup + module.secrets-operator-setup, + time_sleep.wait_1_minutes_after_cluster ] verify = false @@ -432,7 +436,8 @@ resource "helm_release" "external-secrets" { depends_on = [ module.cluster, data.github_repository_file.data-crds-values, - module.secrets-operator-setup + module.secrets-operator-setup, + time_sleep.wait_1_minutes_after_cluster ] @@ -466,7 +471,8 @@ resource "helm_release" "ipa-crds" { depends_on = [ module.cluster, data.github_repository_file.data-crds-values, - module.secrets-operator-setup + module.secrets-operator-setup, + time_sleep.wait_1_minutes_after_cluster ] verify = false @@ -608,6 +614,10 @@ EOT } resource "kubectl_manifest" "gp2-storageclass" { + depends_on = [ + module.cluster, + time_sleep.wait_1_minutes_after_cluster + ] yaml_body = <