Skip to content

Commit

Permalink
create new cluster to test
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Dec 17, 2025
1 parent a5dc675 commit 78ba3bc
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
3 changes: 3 additions & 0 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
provider "aws" {
}

data "aws_secretsmanager_secret_version" "github_token" {
secret_id = "/eks-cluster-deployment/github_token"
}
Expand Down
2 changes: 0 additions & 2 deletions examples/basic/providers.tf

This file was deleted.

48 changes: 48 additions & 0 deletions examples/csvd-lab-mcm/main.tf
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 = "csvd-lab-mcm"
environment = "dev"
region = "us-gov-east-1"

# Cluster configuration - simplified interface
cluster_config = {
account_name = "lab-dev-gov"
aws_account_id = "224384469011"
cluster_mailing_list = "matthew.c.morgan@census.gov"
environment_abbr = "dev"
finops_project_name = "csvd_platformbaseline"
finops_project_number = "fs0000000078"
finops_project_role = "csvd_platformbaseline_eks"
vpc_domain_name = "dev.lab.csp2.census.gov"
vpc_name = "vpc3-lab-dev"
tags = {
Owner = "matthew.c.morgan@census.gov"
Environment = "development"
CostCenter = "fs0000000078"
}
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
}

0 comments on commit 78ba3bc

Please sign in to comment.