Skip to content

Commit

Permalink
updating to the latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nangu001 committed Sep 4, 2024
1 parent 941a4ed commit d089983
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 14 deletions.
20 changes: 9 additions & 11 deletions lab/us-gov-east-1/vpc/cluster/eks-cert-manager/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
terraform {
# source = "git@github.e.it.census.gov:terraform-modules/aws-certificates//acmpca-eks-cert-manager"
# source = "./cert-mgr.tf"
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-cert-mgr.git"

# cluster_name = var.cluster_name
# contact_email = var.cluster_mailing_list
include "root" {
path = find_in_parent_folders()
}

# tags = merge(
# local.base_tags,
# local.common_tags
# )
terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-cert-mgr.git?ref=mcmCluster"
extra_arguments "retry_lock" {
commands = get_terraform_commands_that_need_locking()
arguments = ["-lock-timeout=20m"]
}
}

dependency "eks" {
Expand Down
6 changes: 5 additions & 1 deletion lab/us-gov-east-1/vpc/cluster/eks-config/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {
}

terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-eks-configuration.git?ref=karpenter"
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-eks-configuration.git?ref=mcmCluster"
extra_arguments "retry_lock" {
commands = get_terraform_commands_that_need_locking()
arguments = ["-lock-timeout=20m"]
Expand All @@ -18,6 +18,10 @@ dependency "eks" {
config_path = "../eks"
}

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

inputs = {
profile = dependency.eks.inputs.profile
vpc_id = dependency.eks.outputs.vpc_id
Expand Down
8 changes: 7 additions & 1 deletion lab/us-gov-east-1/vpc/cluster/eks-grafana/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ remote_state {
dependency "eks" {
config_path = "../eks"
}
dependency "eks-loki" {
config_path = "../eks-loki"
}
dependency "eks-tempo" {
config_path = "../eks-tempo"
}

inputs = {
profile = dependency.eks.inputs.profile
cluster_name = dependency.eks.inputs.cluster_name
cluster_domain = dependency.eks.inputs.domain
cluster_domain = dependency.eks.inputs.vpc_domain_name
certificate_issuer = "clusterissuer"
region = "us-gov-east-1"
rwo_storage_class = "gp3-encrypted"
Expand Down
2 changes: 1 addition & 1 deletion lab/us-gov-east-1/vpc/cluster/eks-istio/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include "root" {
}

terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-istio.git?ref=1.0.4"
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-istio.git"
extra_arguments "retry_lock" {
commands = get_terraform_commands_that_need_locking()
arguments = ["-lock-timeout=20m"]
Expand Down
3 changes: 3 additions & 0 deletions lab/us-gov-east-1/vpc/cluster/eks-prometheus/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ remote_state {
dependency "eks" {
config_path = "../eks"
}
dependency "eks-loki" {
config_path = "../eks-loki"
}

inputs = {
profile = dependency.eks.inputs.profile
Expand Down
31 changes: 31 additions & 0 deletions lab/us-gov-east-1/vpc/cluster/eks-tempo/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
include "root" {
path = find_in_parent_folders()
}

locals {
tag_costallocation = "census:csvd:platformbaseline"
}

terraform {
source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-tempo.git?ref=mcmCluster"
extra_arguments "retry_lock" {
commands = get_terraform_commands_that_need_locking()
arguments = ["-lock-timeout=20m"]
}
}

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

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

inputs = {
profile = dependency.eks.inputs.profile
region = dependency.eks.inputs.region
cluster_name = dependency.eks.inputs.cluster_name
prometheus_port = dependency.eks-prometheus.outputs.prometheus_server_internal_endpoint.port_number
prometheus_namespace = dependency.eks-prometheus.outputs.prometheus_namespace
}

0 comments on commit d089983

Please sign in to comment.