Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 22, 2024
1 parent 00ba934 commit 8f8f8c6
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
include "root" {
path = find_in_parent_folders()
expose = true
}

terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-cert-mgr.git"
depends_on = [dependency.eks.outputs.oidc_provider_arn]
Expand Down
54 changes: 54 additions & 0 deletions lab/us-gov-east-1/vpc/_mcmCluster/eks-grafana/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-grafana.git"
extra_arguments "retry_lock" {
commands = get_terraform_commands_that_need_locking()
arguments = ["-lock-timeout=20m"]
}
}

dependency "eks" {
config_path = "../eks"
}
dependency "eks-config" {
config_path = "../eks-config"
}

inputs = {
profile = dependency.eks.inputs.profile
cluster_name = dependency.eks.inputs.cluster_name
region = dependency.eks.inputs.region
cluster_domain = dependency.eks.inputs.domain
certificate_issuer =
datasources =
rwo_storage_class = dependency.eks-config.
}

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
}
1 change: 0 additions & 1 deletion lab/us-gov-east-1/vpc/_mcmCluster/eks-loki/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include "root" {
path = find_in_parent_folders()
expose = true
}

terraform {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
include "root" {
path = find_in_parent_folders()
}

terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-prometheus.git"
extra_arguments "retry_lock" {
Expand Down

0 comments on commit 8f8f8c6

Please sign in to comment.