Skip to content

Commit

Permalink
current
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Nov 19, 2025
1 parent 6eac959 commit 4525cc8
Show file tree
Hide file tree
Showing 12 changed files with 176 additions and 15 deletions.
Submodule eks_deployment.github_repo updated from b6b6cb to 550560
2 changes: 1 addition & 1 deletion examples/basic/.terraform/modules/modules.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"eks_deployment","Source":"../..","Dir":"../.."},{"Key":"eks_deployment.github_repo","Source":"registry.terraform.io/HappyPathway/repo/github","Version":"1.0.83","Dir":".terraform/modules/eks_deployment.github_repo"}]}
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"eks_deployment","Source":"../..","Dir":"../.."},{"Key":"eks_deployment.github_repo","Source":"git::ssh://git@github.e.it.census.gov/CSVD/terraform-github-repo.git","Dir":".terraform/modules/eks_deployment.github_repo"}]}
21 changes: 12 additions & 9 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,27 @@ module "eks_deployment" {
source = "../../"

# Repository and cluster configuration - single name for both
name = "eks-test-cluster"
name = "mojo-cubestore-dev"
environment = "dev"
region = "us-gov-east-1"

# Cluster configuration - simplified interface
cluster_config = {
account_name = "csvd-dev-ew"
aws_account_id = "229685449397"
account_name = "ma6-gov"
aws_account_id = "252960665057"
cluster_mailing_list = "adep.mojo.development.list@census.gov"
environment_abbr = "dev"
vpc_name = "vpc3-csvd-dev"
vpc_domain_name = "dev.inf.csp1.census.gov"
cluster_mailing_list = "david.j.arnold.jr@census.gov"
finops_project_name = "PPSI_DICE"
finops_project_number = "fs0000000015"
finops_project_role = "dice:dev:mojo"
vpc_domain_name = "dev.dice.census.gov"
vpc_name = "vpc2-dice-dev"
tags = {
Owner = "Platform Team"
Owner = "PETeam"
Environment = "Development"
CostCenter = "123-456"
CostCenter = "fs0000000015"
}
organization = "census:ocio:csvd"
organization = "census:ocio:dice"
}
}

Expand Down
62 changes: 62 additions & 0 deletions examples/mojo-cubestr-dev/.terraform_commits
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[
{
"commit_hash": "2d1a9976c65f53b370b4a3ff0829394449127d5a",
"commit_message": "Fix formatting of runs-on value in GitHub Actions workflow",
"author": "Your Name",
"timestamp": "2025-09-04T13:49:32.940158"
},
{
"commit_hash": "2d1a9976c65f53b370b4a3ff0829394449127d5a",
"commit_message": "Fix formatting of runs-on value in GitHub Actions workflow",
"author": "Your Name",
"timestamp": "2025-09-04T13:52:48.384810"
},
{
"commit_hash": "2d1a9976c65f53b370b4a3ff0829394449127d5a",
"commit_message": "Fix formatting of runs-on value in GitHub Actions workflow",
"author": "Your Name",
"timestamp": "2025-09-04T14:36:08.594715"
},
{
"commit_hash": "2d1a9976c65f53b370b4a3ff0829394449127d5a",
"commit_message": "Fix formatting of runs-on value in GitHub Actions workflow",
"author": "Your Name",
"timestamp": "2025-09-04T15:59:08.094373"
},
{
"commit_hash": "94a518393002dd67ec0a178aee46323921889767",
"commit_message": "Refactor README and ROADMAP for clarity; update Terraform configurations and remove deprecated variables",
"author": "Your Name",
"timestamp": "2025-09-05T13:52:50.300053"
},
{
"commit_hash": "94a518393002dd67ec0a178aee46323921889767",
"commit_message": "Refactor README and ROADMAP for clarity; update Terraform configurations and remove deprecated variables",
"author": "Your Name",
"timestamp": "2025-09-05T13:57:43.873358"
},
{
"commit_hash": "94a518393002dd67ec0a178aee46323921889767",
"commit_message": "Refactor README and ROADMAP for clarity; update Terraform configurations and remove deprecated variables",
"author": "Your Name",
"timestamp": "2025-09-08T13:08:10.570707"
},
{
"commit_hash": "94a518393002dd67ec0a178aee46323921889767",
"commit_message": "Refactor README and ROADMAP for clarity; update Terraform configurations and remove deprecated variables",
"author": "Your Name",
"timestamp": "2025-09-10T15:25:49.548237"
},
{
"commit_hash": "1694ff2abd5271962c65bf1a8798c15cfdcd0af9",
"commit_message": "Update main.tf",
"author": "David John Arnold Jr",
"timestamp": "2025-09-10T17:11:02.705468"
},
{
"commit_hash": "1694ff2abd5271962c65bf1a8798c15cfdcd0af9",
"commit_message": "Update main.tf",
"author": "David John Arnold Jr",
"timestamp": "2025-09-10T17:17:55.685167"
}
]
45 changes: 45 additions & 0 deletions examples/mojo-cubestr-dev/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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 = "mojo-cubestr-dev"
environment = "dev"
region = "us-gov-east-1"

# Cluster configuration - simplified interface
cluster_config = {
account_name = "ma6-gov"
aws_account_id = "252960665057"
cluster_mailing_list = "adep.mojo.development.list@census.gov"
environment_abbr = "dev"
finops_project_name = "PPSI_DICE"
finops_project_number = "fs0000000015"
finops_project_role = "dice:dev:mojo"
vpc_domain_name = "dev.dice.census.gov"
vpc_name = "vpc2-dice-dev"
tags = {
Owner = "PETeam"
Environment = "Development"
CostCenter = "fs0000000015"
}
organization = "census:ocio:dice"
}
}

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
}
2 changes: 2 additions & 0 deletions examples/mojo-cubestr-dev/providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
provider "aws" {
}
1 change: 1 addition & 0 deletions examples/mojo-cubestr-dev/varfiles/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
45 changes: 45 additions & 0 deletions examples/ois-misp-prod/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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 = "ois-misp-prod"
environment = "prod"
region = "us-gov-east-1"

# Cluster configuration - simplified interface
cluster_config = {
account_name = "ois-misp-prod-gov"
aws_account_id = "399570725053"
cluster_mailing_list = "ois.misp.list@census.gov"
environment_abbr = "prod"
finops_project_name = "OIS_MISP"
finops_project_number = "fs0000000102"
finops_project_role = "OIS_MISP_APP"
vpc_domain_name = "shared.inf.csp1.census.gov"
vpc_name = "vpc2-inf-shared"
tags = {
Owner = "ois.misp.list@census.gov"
Environment = "production"
CostCenter = "ocio:ois-misp"
}
organization = "census:ocio:ois"
}
}

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
}
2 changes: 2 additions & 0 deletions examples/ois-misp-prod/providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
provider "aws" {
}
1 change: 1 addition & 0 deletions examples/ois-misp-prod/varfiles/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module "github_repo" {
template_repo_org = local.repository_defaults.template_owner
template_repo = local.repository_defaults.template

github_is_private = var.is_private
github_is_private = false
github_has_issues = true
github_has_wiki = true
github_has_projects = true
Expand Down Expand Up @@ -118,4 +118,4 @@ output "repository_url" {
output "ssh_clone_url" {
description = "SSH clone URL of the repository"
value = module.github_repo.ssh_clone_url
}
}
4 changes: 2 additions & 2 deletions providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = ">= 5.0"
version = ">= 6.6.0, < 6.7.0"
}
aws = {
source = "hashicorp/aws"
version = ">= 5.0"
}
}
}
}

0 comments on commit 4525cc8

Please sign in to comment.