Skip to content

Commit

Permalink
state shennanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Sep 13, 2024
1 parent 2141849 commit 0eb3e19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions lab/us-gov-east-1/vpc/_mcmCluster/eks-tempo/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ inputs = {
profile = dependency.eks.inputs.profile
region = dependency.eks.inputs.region
cluster_name = dependency.eks.inputs.cluster_name
oidc_provider_arn = dependency.eks.outputs.oidc_provider_arn
prometheus_port = dependency.eks-prometheus.outputs.prometheus_server_internal_endpoint.port_number
prometheus_namespace = dependency.eks-prometheus.outputs.prometheus_namespace
}
2 changes: 1 addition & 1 deletion lab/us-gov-east-1/vpc/_mcmCluster/eks/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locals {
# In which AWS region are operations being performed
account_id = local.account_vars.locals.aws_account_id
vpc_name = "vpc3-lab-dev"
cluster_name = "platform-eng-ci-cd"
cluster_name = "platform-eng-eks-mcm"
cluster_version = "1.30"
vpc_domain_name = "dev.lab.csp2.census.gov"
eks_instance_disk_size = 100
Expand Down
13 changes: 5 additions & 8 deletions lab/us-gov-east-1/vpc/_mcmCluster/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ locals {
# Extract the variables we need for easy access
account_id = local.account_vars.locals.aws_account_id
account_name = local.account_vars.locals.account_name
creator = "ahmed.m.youssef@census.gov"
creator = "matthew.c.morgan@census.gov"
organization = "census:ocio:csvd"
profile = "224384469011-lab-dev-gov"
project_name = "csvd_platformbaseline"
project_number = "fs0000000078"
project_role = "csvd_platformbaseline_cicd"
project_role = "csvd_platformbaseline_mcm"
region = local.region_vars.locals.aws_region
state_bucket_prefix = "inf-tfstate"
state_table_name = "tf_remote_state"
Expand Down Expand Up @@ -75,17 +75,14 @@ remote_state {
if_exists = "overwrite_terragrunt"
}
config = {
#---
# "${local.account_name}": "${get_path_from_repo_root()}"
#---
bucket = "${local.state_bucket_prefix}-${local.account_id}"
profile = "${local.profile}"
dynamodb_table = "${local.state_table_name}"
key = "${trimprefix(replace(run_cmd("realpath", get_original_terragrunt_dir()), dirname(get_repo_root()), ""), "/")}"
profile = "${local.profile}"
region = "${local.region}"
dynamodb_table = "${local.state_table_name}"
skip_bucket_enforced_tls = true
skip_bucket_root_access = true
skip_bucket_ssencryption = true
skip_bucket_enforced_tls = true
}
}

Expand Down

0 comments on commit 0eb3e19

Please sign in to comment.