Skip to content

Commit

Permalink
add skip_outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 19, 2024
1 parent 93867e0 commit 82aa337
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions lab/us-gov-east-1/vpc/mcmCluster/eks-istio/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependency "eks" {
}
dependency "eks-config" {
config_path = "../eks-config"
skip_outputs = true
}

inputs = {
Expand All @@ -20,3 +21,33 @@ inputs = {
istio_chart_version = "1.22.1"
istio_version = "1.22.1"
}

generate "provider-eks" {
path = "provider.tf"
if_exists = "overwrite_terragrunt"
contents = <<EOF
data "aws_eks_cluster" "cluster" {
name = "${dependency.eks.inputs.cluster_name}"
}
data "aws_eks_cluster_auth" "cluster" {
name = "${dependency.eks.inputs.cluster_name}"
}
provider "kubernetes" {
host = data.aws_eks_cluster.cluster.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.cluster.token
}
provider "helm" {
kubernetes {
host = data.aws_eks_cluster.cluster.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.cluster.token
}
}
EOF
}

0 comments on commit 82aa337

Please sign in to comment.