Skip to content

Commit

Permalink
managing repos
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Jun 11, 2024
1 parent 1103adf commit 7f64136
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 5 deletions.
68 changes: 68 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

172 changes: 167 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,176 @@
locals {
collaborators = {
naray007 = "write",
morga471 = "write",
lolli001 = "write",
gomez385 = "write"
}
}

module "elastic_beanstalk" {
source = "HappyPathway/repo/github"
github_codeowners_team = "CSVD"
github_repo_description = "Terraform Module for creating Elastic Beanstalk Apps and Environments"
#github_codeowners_team = "CSVD"
github_repo_description = "Terraform Workspace for creating Elastic Beanstalk Apps and Environments"
repo_org = "arnol377"
name = "terraform-aws-beanstalk"
name = "aws-beanstalk"
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
}

#module "goss-testing" {
# source = "HappyPathway/repo/github"
# #github_codeowners_team = "CSVD"
# github_repo_description = "Goss testing suite for ec2 instances"
# repo_org = "CSVD"
# name = "image-pipeline-goss-testing"
# github_repo_topics = [
# "terraform"
# ]
# is_template = true
# force_name = true
# create_codeowners = false
# enforce_prs = false
# collaborators = {
# naray007 = "write",
# morga471 = "write",
# # gomez385 = "write"
# }
#}



module "elastic_beanstalk_java" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Terraform Workspace for creating Elastic Beanstalk Apps and Environments"
repo_org = "arnol377"
name = "aws-beanstalk-java"
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
template_repo = "aws-beanstalk"
template_repo_org = "CSVD"
}

module "elastic_beanstalk_nodejs" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Terraform Workspace for creating Elastic Beanstalk Apps and Environments"
repo_org = "arnol377"
name = "aws-beanstalk-nodejs"
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
template_repo = "aws-beanstalk"
template_repo_org = "CSVD"
}



module "elastic_beanstalk_docker" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Terraform Workspace for creating Elastic Beanstalk Apps and Environments"
repo_org = "arnol377"
name = "aws-beanstalk-docker"
github_repo_topics = [
"terraform"
]
is_template = true
force_name = true
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
template_repo = "aws-beanstalk"
template_repo_org = "CSVD"
}


# image-pipeline
module "image_pipeline" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Terraform Workspace for creating and managing AWS Image Pipelines"
repo_org = "arnol377"
name = "aws-image-pipeline"
github_repo_topics = [
"terraform"
]
force_name = true
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
}


module "dev_network" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Terraform Workspace for creating and managing AWS Dev Network"
repo_org = "arnol377"
name = "aws-dev-network"
github_repo_topics = [
"terraform"
]
force_name = true
create_codeowners = false
enforce_prs = false
admin_teams = [
"CSVD"
"csvd_users"
]
}

module "beanstalk-demo" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Terraform Workspace for creating and managing AWS Dev Network"
repo_org = "arnol377"
name = "beanstalk-flask-demo"
github_repo_topics = [
"terraform"
]
force_name = true
}
create_codeowners = false
enforce_prs = false
admin_teams = [
"csvd_users"
]
is_template = true
collaborators = {
naray007 = "write",
morga471 = "write",
lolli001 = "write"
}

}




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" {
repository_name = "image-pipeline-goss-testing"
description = "Goss testing suite for ec2 images"
}

4 changes: 4 additions & 0 deletions providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
provider "github" {
owner = "CSVD"
base_url = "https://github.e.it.census.gov"
}
13 changes: 13 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
terraform {
required_providers {
random = {
source = "integrations/github"
version = "6.2.0"
}
aws = {
source = "hashicorp/aws"
version = ">= 2.0.0"
}
}
required_version = ">= 1.1"
}

0 comments on commit 7f64136

Please sign in to comment.