Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 19, 2024
1 parent 38060a1 commit 522416a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lab/us-gov-east-1/vpc/mcmCluster/eks-config/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ generate "provider-eks" {
if_exists = "overwrite_terragrunt"
contents = <<EOF
data "aws_eks_cluster" "cluster" {
name = dependency.eks.inputs.cluster_name
name = "${dependency.eks.inputs.cluster_name}"
}
data "aws_eks_cluster_auth" "cluster" {
name = dependency.eks.inputs.cluster_name
name = "${dependency.eks.inputs.cluster_name}"
}
provider "kubernetes" {
Expand Down
30 changes: 30 additions & 0 deletions lab/us-gov-east-1/vpc/mcmCluster/eks-loki/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,33 @@ inputs = {
oidc_provider_arn = dependency.eks.outputs.oidc_provider_arn
region = dependency.eks.inputs.region
}

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 522416a

Please sign in to comment.