From 38f36106a79823ec83e2518b6009109ffaa9d2eb Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Mon, 8 Jul 2024 14:03:04 -0400 Subject: [PATCH] adding linux and window image pipeline packer config repos --- main.tf | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/main.tf b/main.tf index 2a467c1..16ea9dc 100644 --- a/main.tf +++ b/main.tf @@ -211,7 +211,7 @@ module "image_pipeline" { module "beanstalk-demo" { source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" #github_codeowners_team = "CSVD" - github_repo_description = "Terraform Workspace for creating and managing AWS Dev Network" + github_repo_description = "Terraform Workspace for creating and managing AWS Beanstalk Demo" repo_org = "arnol377" name = "beanstalk-flask-demo" github_repo_topics = [ @@ -225,27 +225,43 @@ module "beanstalk-demo" { admin_teams = [github_team.team.name] } -module "image-pipeline-ansible-roles" { +module "image_pipeline_ansible_playbooks" { source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" #github_codeowners_team = "CSVD" - github_repo_description = "Terraform Workspace for creating and managing AWS Dev Network" + github_repo_description = "Repo for creating and managing Ansible Playbooks for use in Image Pipeline" repo_org = "arnol377" - name = "image-pipeline-ansible-roles" + name = "image-pipeline-ansible-playbooks" github_repo_topics = [ "terraform" ] force_name = true create_codeowners = false enforce_prs = false - is_template = true collaborators = local.collaborators admin_teams = [github_team.team.name] } +resource "aws_codecommit_repository" "image-pipeline-ansible-playbooks" { + repository_name = module.image_pipeline_ansible_playbooks.github_repo.name + description = module.image_pipeline_ansible_playbooks.github_repo.description +} + + +resource "aws_codecommit_repository" "windows-image-pipeline" { + repository_name = "windows-image-pipeline" + description = "Windows Packer config for Image Pipeline" +} + +resource "aws_codecommit_repository" "linux-image-pipeline" { + repository_name = "linux-image-pipeline" + description = "Linux Packer config for Image Pipeline" +} + + module "image-pipeline-playbook" { source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" #github_codeowners_team = "CSVD" - github_repo_description = "Terraform Workspace for creating and managing AWS Dev Network" + github_repo_description = "Terraform Workspace for creating and managing Ansible Playbook" repo_org = "arnol377" name = "image-pipeline-playbook" github_repo_topics = [ @@ -276,10 +292,6 @@ module "windows-ami-build" { admin_teams = [github_team.team.name] } -resource "aws_codecommit_repository" "ansible" { - repository_name = "image-pipeline-ansible-roles" - description = "This is the Sample App Repository" -} # image-pipeline-goss-testing resource "aws_codecommit_repository" "goss-testing" {