From 4d86f55d87e728d0cd43481eea14c3889ec34d52 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Fri, 6 Mar 2026 12:26:23 -0500 Subject: [PATCH] create cluster in csvd-common for testing --- examples/csvd-mcm-common/main.tf | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 examples/csvd-mcm-common/main.tf diff --git a/examples/csvd-mcm-common/main.tf b/examples/csvd-mcm-common/main.tf new file mode 100644 index 0000000..c6b13fb --- /dev/null +++ b/examples/csvd-mcm-common/main.tf @@ -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 = "csvd-mcm-common" + environment = "prod" + region = "us-gov-east-1" + + # Cluster configuration - simplified interface + cluster_config = { + account_name = "csvd-mcm-common" + aws_account_id = "220615867784" + cluster_mailing_list = "matthew.c.morgan@census.gov" + environment_abbr = "prod" + finops_project_name = "csvd_platformbaseline", + finops_project_number = "fs0000000078", + finops_project_role = "csvd_platformbaseline_app", + vpc_domain_name = "shared.inf.csp1.census.gov" + vpc_name = "vpc2-inf-shared" + tags = { + Owner = "matthew.c.morgan@census.gov" + Environment = "development" + CostCenter = "census:ocio:csvd" + } + organization = "census:ocio:csvd" + } +} + +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 +}