-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move all generated-repo file management into terraform-eks-depl…
…oyment - Add all 20 eks-module terragrunt.hcl files to templates/eks-modules/; these are written verbatim (file()) into the generated repo under $env/$region/$vpc/$cluster/<module>/terragrunt.hcl - Wire templates/eks-modules/ into managed_extra_files via a fileset-based local (eks_module_files) merged with the existing rendered_files local - Set template_repo = null in both defaults.tf and main.tf; all generated repo content now flows exclusively through managed_extra_files with no GitHub template seeding - Rename templates/common-variables.hcl and templates/default-versions.hcl to *.hcl.tf.tpl to match the existing convention: .tf.tpl = parsed by templatefile(), eks-modules/*.hcl = written verbatim - Update locals.tf references for the renamed template files - Fix alignment formatting in examples/basic and examples/adsd-tools-dev
- Loading branch information
Dave Arnold
committed
Apr 21, 2026
1 parent
edfe5d5
commit 9fde876
Showing
27 changed files
with
1,737 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| include "root" { | ||
| path = find_in_parent_folders("root.hcl") | ||
| merge_strategy = "deep" | ||
| expose = true | ||
| } | ||
|
|
||
| locals { | ||
| # Skip this module if disabled | ||
| skip = !lookup(include.root.locals.is_module_enabled, basename(get_terragrunt_dir()), true) | ||
| } | ||
|
|
||
| exclude { | ||
| if = local.skip | ||
| actions = ["all_except_output"] | ||
| exclude_dependencies = false | ||
| } | ||
|
|
||
| terraform { | ||
| source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-ersi-arcgis.git?ref=${include.root.inputs.release_version}" | ||
| extra_arguments "retry_lock" { | ||
| commands = get_terraform_commands_that_need_locking() | ||
| arguments = ["-lock-timeout=20s"] | ||
| } | ||
| } | ||
|
|
||
| dependency "eks" { | ||
| config_path = "../eks" | ||
| mock_outputs_allowed_terraform_commands = ["init", "plan", "validate", "destroy"] | ||
| mock_outputs = { | ||
| cluster_name = "mock-cluster" | ||
| } | ||
| } | ||
|
|
||
| dependency "eks_config" { | ||
| config_path = "../eks-config" | ||
| mock_outputs_allowed_terraform_commands = ["init", "plan", "validate", "destroy"] | ||
| mock_outputs = { | ||
| rwo_storage_class = "gp3-mock" | ||
| } | ||
| } | ||
|
|
||
| dependency "eks_dns" { | ||
| config_path = "../eks-dns" | ||
| mock_outputs_allowed_terraform_commands = ["init", "plan", "validate", "destroy"] | ||
| mock_outputs = { | ||
| cluster_domain = "mock.domain.example.com" | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| paths = [ | ||
| "../eks", | ||
| "../eks-config", | ||
| "../eks-dns", | ||
| "../eks-kiali", | ||
| ] | ||
| } | ||
|
|
||
| inputs = { | ||
| # AWS Configuration | ||
| account_id = include.root.inputs.aws_account_id | ||
| profile = include.root.inputs.aws_profile | ||
| region = include.root.inputs.aws_region | ||
| eecr_info = include.root.inputs.eecr_info | ||
|
|
||
| # Cluster Configuration | ||
| cluster_domain = dependency.eks_dns.outputs.cluster_domain | ||
| cluster_name = dependency.eks.outputs.cluster_name | ||
| namespace = "arcgis" | ||
| rwo_storage_class = dependency.eks_config.outputs.rwo_storage_class | ||
|
|
||
| # Dockerhub Creds | ||
| dockerhub_username = "" | ||
| dockerhub_password = "" | ||
|
|
||
| # ArcGIS Config | ||
| ersi_image_tag = "11.4.0.6285" | ||
| arcgis_license_json = "" | ||
| arcgis_admin_username = "admin" | ||
| arcgis_admin_password = "password" | ||
| arcgis_admin_email = include.root.inputs.cluster_mailing_list | ||
| arcgis_admin_firstname = "admin" | ||
| arcgis_admin_lastname = "admin" | ||
| arcgis_security_question_index = 1 | ||
| arcgis_security_question_answer = "Las Vegas" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| include "root" { | ||
| path = find_in_parent_folders("root.hcl") | ||
| merge_strategy = "deep" | ||
| expose = true | ||
| } | ||
|
|
||
| locals { | ||
| # Skip this module if disabled | ||
| skip = !lookup(include.root.locals.is_module_enabled, basename(get_terragrunt_dir()), true) | ||
| } | ||
|
|
||
| exclude { | ||
| if = local.skip | ||
| actions = ["all_except_output"] | ||
| exclude_dependencies = false | ||
| } | ||
|
|
||
| terraform { | ||
| source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-cert-mgr.git?ref=${include.root.inputs.release_version}" | ||
|
|
||
| extra_arguments "retry_lock" { | ||
| commands = get_terraform_commands_that_need_locking() | ||
| arguments = ["-lock-timeout=20s"] | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| paths = [ | ||
| "../eks", | ||
| "../eks-config", | ||
| "../eks-karpenter", | ||
| "../eks-metrics-server", | ||
| ] | ||
| } | ||
|
|
||
| dependency "eks" { | ||
| config_path = "../eks" | ||
| mock_outputs_allowed_terraform_commands = ["init", "plan", "validate", "destroy"] | ||
|
|
||
| mock_outputs = { | ||
| cluster_name = include.root.inputs.cluster_name | ||
| oidc_provider_arn = "arn:aws-us-gov:iam::123456789012:oidc-provider/mock" | ||
| cluster_endpoint = "https://mock-endpoint.eks.amazonaws.com" | ||
| cluster_version = include.root.inputs.cluster_version | ||
| } | ||
| } | ||
|
|
||
| inputs = { | ||
| # AWS Configuration | ||
| account_id = include.root.inputs.aws_account_id | ||
| profile = include.root.inputs.aws_profile | ||
| region = include.root.inputs.aws_region | ||
| eecr_info = include.root.inputs.eecr_info | ||
|
|
||
| # Cluster Configuration | ||
| cluster_name = dependency.eks.outputs.cluster_name | ||
| cluster_mailing_list = include.root.inputs.cluster_mailing_list | ||
| oidc_provider_arn = dependency.eks.outputs.oidc_provider_arn | ||
|
|
||
| # Cert Manager Configuration | ||
| cert_manager_helm_chart = include.root.inputs.cert_manager_helm_chart | ||
| cluster_issuer_name = include.root.inputs.cluster_issuer_name | ||
| namespace = include.root.inputs.namespaces["cert-manager"] | ||
|
|
||
| # Version Tags | ||
| cert_manager_cainjector_tag = include.root.inputs.cert_manager_cainjector_tag | ||
| cert_manager_controller_tag = include.root.inputs.cert_manager_controller_tag | ||
| cert_manager_startupapicheck_tag = include.root.inputs.cert_manager_startupapicheck_tag | ||
| cert_manager_webhook_tag = include.root.inputs.cert_manager_webhook_tag | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| include "root" { | ||
| path = find_in_parent_folders("root.hcl") | ||
| merge_strategy = "deep" | ||
| expose = true | ||
| } | ||
|
|
||
| locals { | ||
| # Skip this module if disabled | ||
| skip = !lookup(include.root.locals.is_module_enabled, basename(get_terragrunt_dir()), true) | ||
| } | ||
|
|
||
| exclude { | ||
| if = local.skip | ||
| actions = ["all_except_output"] | ||
| exclude_dependencies = false | ||
| } | ||
|
|
||
| terraform { | ||
| source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-eks-configuration.git?ref=${include.root.inputs.release_version}" | ||
|
|
||
| extra_arguments "retry_lock" { | ||
| commands = get_terraform_commands_that_need_locking() | ||
| arguments = ["-lock-timeout=20s"] | ||
| } | ||
| } | ||
|
|
||
| dependency "eks" { | ||
| config_path = "../eks" | ||
| mock_outputs_allowed_terraform_commands = ["init", "plan", "validate", "destroy"] | ||
|
|
||
| mock_outputs = { | ||
| cluster_name = "mock-cluster" | ||
| cluster_endpoint = "https://mock-endpoint.eks.amazonaws.com" | ||
| cluster_certificate_authority_data = [{ data = "mock-cert-data" }] | ||
| eks_managed_node_groups_autoscaling_group_names = ["mock-asg-name"] | ||
| oidc_provider_arn = "arn:aws-us-gov:iam::123456789012:oidc-provider/mock" | ||
| security_group_all_worker_mgmt_id = "sg-mock" | ||
| subnets = ["subnet-mock1", "subnet-mock2"] | ||
| vpc_id = "vpc-mock" | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| paths = [ | ||
| "../eks", | ||
| "../eks-karpenter", | ||
| ] | ||
| } | ||
|
|
||
| inputs = { | ||
| # AWS Configuration | ||
| account_id = include.root.inputs.aws_account_id | ||
| profile = include.root.inputs.aws_profile | ||
| region = include.root.inputs.aws_region | ||
|
|
||
| # Core Cluster Configuration | ||
| cluster_name = dependency.eks.outputs.cluster_name | ||
| eks_managed_node_groups_autoscaling_group_names = dependency.eks.outputs.eks_managed_node_groups_autoscaling_group_names | ||
| oidc_provider_arn = dependency.eks.outputs.oidc_provider_arn | ||
| security_group_all_worker_mgmt_id = dependency.eks.outputs.security_group_all_worker_mgmt_id | ||
| subnets = dependency.eks.outputs.subnets | ||
| vpc_id = dependency.eks.outputs.vpc_id | ||
| operators_ns = include.root.inputs.operator_namespace | ||
| telemetry_ns = include.root.inputs.telemetry_namespace | ||
| } |
Oops, something went wrong.