Skip to content

Commit

Permalink
fix: Add k8s provider & wait for addons (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zvikan authored Nov 3, 2022
1 parent 68b597d commit ae7274a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/tls-with-aws-pca-issuer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ provider "kubectl" {
token = data.aws_eks_cluster_auth.this.token
}

provider "kubernetes" {
host = module.eks_blueprints.eks_cluster_endpoint
cluster_ca_certificate = base64decode(module.eks_blueprints.eks_cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.this.token
}

provider "helm" {
kubernetes {
host = module.eks_blueprints.eks_cluster_endpoint
Expand Down Expand Up @@ -145,6 +151,10 @@ resource "kubectl_manifest" "cluster_pca_issuer" {
region : local.region
}
})

depends_on = [
module.eks_blueprints_kubernetes_addons
]
}

#-------------------------------
Expand Down Expand Up @@ -185,7 +195,6 @@ resource "kubectl_manifest" "example_pca_certificate" {
})

depends_on = [
module.eks_blueprints_kubernetes_addons,
kubectl_manifest.cluster_pca_issuer,
]
}
Expand Down

0 comments on commit ae7274a

Please sign in to comment.