-
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.
Update Workflow for existing clusters (#16)
* create new cluster to test * update defaults to min/desired 2 * make csvd-dev-mcm cluster for testing * add cluster for adsd-etdsb-tools-nonprod (#13) * rename cluster in convo with customer (#14) * Rename adsd tools (#15) * rename cluster in convo with customer * create cluster in csvd-common for testing * update cluster workflow * update environment_abbr based on account_name * add .gitignore for new clusters * update default-versions and common-variables gen * rename to match * fmt * self ref doesn't work * env fixed, add clusters folder * update to track files in template-eks-cluster/ * fix(finops_codes) ensure passed in finops codes are used * complete update workflow * update version for otel-collector-k8s * bump version of eks-dns and tempo * complete update workflow, fix create workflow, open PRs on both * remove cruft * more tags * update tags * update tag handling and gen * fix: replace local module path with CSVD GHE HTTPS source ref * fix: point module source to CSVD/terraform-github-repo main (feat/files-branch-source-branch merged) * refactor: replace template-eks-cluster remote sync with local templates/eks-modules Remove the data.github_repository_file / data.github_tree approach that read cluster-level terragrunt files from the template-eks-cluster repo at runtime. All HCL templates are now managed locally in templates/eks-modules/ inside this module repo, consistent with the ADR merged in #18. Changes: - Remove effective_template_enabled_modules and template_cluster_sync_files locals - Remove data.github_repository_file.template_cluster_files data source - Remove template_repo_name, template_repo_ref, template_cluster_file_paths variables - Move effective_template_enabled_modules into the eks_module_files locals block and apply enablement filter directly to the fileset loop - Update desired_managed_files_by_path to use local.eks_module_files - Update template_enabled_modules variable description to reflect local template usage --------- Co-authored-by: Dave Arnold <user@example.com>
- Loading branch information
Showing
27 changed files
with
1,035 additions
and
2,865 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 was deleted.
Oops, something went wrong.
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,48 @@ | ||
| provider "aws" { | ||
| } | ||
|
|
||
| data "aws_secretsmanager_secret_version" "github_token" { | ||
| secret_id = "/eks-cluster-deployment/github_token" | ||
| } | ||
|
|
||
| provider "github" { | ||
| token = data.aws_secretsmanager_secret_version.github_token.secret_string | ||
| } | ||
|
|
||
| module "eks_deployment" { | ||
| source = "../../" | ||
|
|
||
| # Repository and cluster configuration - single name for both | ||
| name = "adsd-tools-dev" | ||
| environment = "prod" | ||
| region = "us-gov-east-1" | ||
|
|
||
| # Cluster configuration - simplified interface | ||
| cluster_config = { | ||
| account_name = "adsd-tools-nonprod-gov" | ||
| aws_account_id = "533109815932" | ||
| cluster_mailing_list = "adsd.enterprise.tools.support.branch.list@census.gov" | ||
| environment_abbr = "prod" | ||
| finops_project_name = "adsd_etdsb_tools_migration" | ||
| finops_project_number = "fs0000000069" | ||
| finops_project_role = "adsd_tools_mgrn_eks" | ||
| vpc_domain_name = "dev.adsd.csp1.census.gov" | ||
| vpc_name = "vpc3-inf-dev" | ||
| tags = { | ||
| Owner = "adsd.enterprise.tools.support.branch.list@census.gov" | ||
| Environment = "development" | ||
| CostCenter = "census:ocio:adsd" | ||
| } | ||
| organization = "census:ocio:adsd" | ||
| } | ||
| } | ||
|
|
||
| output "repository_url" { | ||
| description = "URL of the created GitHub repository" | ||
| value = module.eks_deployment.repository_url | ||
| } | ||
|
|
||
| output "ssh_clone_url" { | ||
| description = "SSH clone URL of the repository" | ||
| value = module.eks_deployment.ssh_clone_url | ||
| } |
Oops, something went wrong.