Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Sep 12, 2024
1 parent 8f1dd5c commit 2141849
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 37 deletions.
12 changes: 6 additions & 6 deletions lab/us-gov-east-1/vpc/_mcmCluster/eks-grafana/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ dependency "eks-config" {
}

dependency "eks-istio" {
config_path = "../eks-istio"
config_path = "../eks-istio"
skip_outputs = true
}

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

inputs = {
profile = dependency.eks.inputs.profile
cluster_name = dependency.eks.inputs.cluster_name
region = dependency.eks.inputs.region
cluster_domain = dependency.eks.inputs.vpc_domain_name
profile = dependency.eks.inputs.profile
cluster_name = dependency.eks.inputs.cluster_name
region = dependency.eks.inputs.region
cluster_domain = dependency.eks.inputs.vpc_domain_name
# datasources = {
# loki = dependency.eks-loki.outputs.gateway_internal_endpoint
# }
Expand Down
17 changes: 8 additions & 9 deletions lab/us-gov-east-1/vpc/_mcmCluster/eks/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ locals {
cluster_endpoint_public_access = true
profile = "224384469011-lab-dev-gov"
region = local.region_vars.locals.aws_region
cluster_mailing_list = "ahmed.m.youssef@census.gov"
cluster_mailing_list = "matthew.c.morgan@census.gov"

# Tags applied to AWS objects created
tags = {
Expand All @@ -42,14 +42,13 @@ terraform {
}

inputs = {
aws_account_id = local.account_id
profile = local.profile
vpc_name = local.eks_vpc_name
cluster_name = local.cluster_name
cluster_version = local.cluster_version
eks_instance_disk_size = local.eks_instance_disk_size
eks_vpc_name = local.eks_vpc_name
# eks_instance_types = local.eks_instance_types
aws_account_id = local.account_id
profile = local.profile
vpc_name = local.eks_vpc_name
cluster_name = local.cluster_name
cluster_version = local.cluster_version
eks_instance_disk_size = local.eks_instance_disk_size
eks_vpc_name = local.eks_vpc_name
eks_ng_desired_size = local.eks_ng_desired_size
eks_ng_max_size = local.eks_ng_max_size
eks_ng_min_size = local.eks_ng_min_size
Expand Down
44 changes: 22 additions & 22 deletions lab/us-gov-east-1/vpc/_mcmCluster/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ locals {
# vpc_vars = read_terragrunt_config(find_in_parent_folders("vpc.hcl", "skip-account-if-does-not-exist"))

# 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"
organization = "census:ocio:csvd"
profile = "224384469011-lab-dev-gov"
project_name = "csvd_platformbaseline"
project_number = "fs0000000078"
project_role = "csvd_platformbaseline_cicd"
region = local.region_vars.locals.aws_region
account_id = local.account_vars.locals.aws_account_id
account_name = local.account_vars.locals.account_name
creator = "ahmed.m.youssef@census.gov"
organization = "census:ocio:csvd"
profile = "224384469011-lab-dev-gov"
project_name = "csvd_platformbaseline"
project_number = "fs0000000078"
project_role = "csvd_platformbaseline_cicd"
region = local.region_vars.locals.aws_region
state_bucket_prefix = "inf-tfstate"
state_table_name = "tf_remote_state"
state_table_name = "tf_remote_state"
}

generate "provider" {
Expand Down Expand Up @@ -71,21 +71,21 @@ EOF
remote_state {
backend = "s3"
generate = {
path = "remote_state.backend.tf"
path = "remote_state.backend.tf"
if_exists = "overwrite_terragrunt"
}
config = {
#---
# "${local.account_name}": "${get_path_from_repo_root()}"
#---
bucket = "${local.state_bucket_prefix}-${local.account_id}"
profile = "${local.profile}"
key = "${trimprefix(replace(run_cmd("realpath",get_original_terragrunt_dir()),dirname(get_repo_root()),""),"/")}"
region = "${local.region}"
dynamodb_table = "${local.state_table_name}"
skip_bucket_root_access = true
skip_bucket_ssencryption = true
skip_bucket_enforced_tls = true
#---
# "${local.account_name}": "${get_path_from_repo_root()}"
#---
bucket = "${local.state_bucket_prefix}-${local.account_id}"
profile = "${local.profile}"
key = "${trimprefix(replace(run_cmd("realpath", get_original_terragrunt_dir()), dirname(get_repo_root()), ""), "/")}"
region = "${local.region}"
dynamodb_table = "${local.state_table_name}"
skip_bucket_root_access = true
skip_bucket_ssencryption = true
skip_bucket_enforced_tls = true
}
}

Expand Down

0 comments on commit 2141849

Please sign in to comment.