diff --git a/main.tf b/main.tf index 7f1fc05..def24b3 100644 --- a/main.tf +++ b/main.tf @@ -2,7 +2,7 @@ locals { collaborators = { naray007 = "push", morga471 = "admin", - lolli001 = "push", + lolli001 = "pull", gomez385 = "admin" } pull_request_bypassers = [ @@ -27,6 +27,25 @@ resource "github_team" "team" { # } # } +# image-pipeline-asset-releases +module "asset_releases" { + source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" + #github_codeowners_team = "CSVD" + github_repo_description = "Terraform Workspace for publishing image-pipeline-assets" + repo_org = "arnol377" + name = "image-pipeline-asset-releases" + github_repo_topics = [ + "terraform" + ] + is_template = true + force_name = true + create_codeowners = false + enforce_prs = false + collaborators = local.collaborators + admin_teams = [github_team.team.name] + pull_request_bypassers = local.pull_request_bypassers +} + module "elastic_beanstalk" { source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" #github_codeowners_team = "CSVD" @@ -363,21 +382,22 @@ data terraform_remote_state pipeline { key = "csvd-dev-gov/common/apps/aws-image-pipeline-demo" region = "us-gov-east-1" dynamodb_table = "tf_remote_state" - } -} -resource "aws_iam_service_specific_credential" "codecommit" { - service_name = "codecommit.amazonaws.com" - user_name = data.terraform_remote_state.pipeline.outputs.codebuild_user -} - - -output codecommit_credentials_username { - value = aws_iam_service_specific_credential.codecommit.service_user_name + } } -output codecommit_credentials_password { - value =nonsensitive(aws_iam_service_specific_credential.codecommit.service_password) +module "setup_terraform" { + source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" + github_repo_description = "Github Actions SetupTerraform" + repo_org = "arnol377" + name = "gh-actions-setup-terraform" + github_repo_topics = [ + "terraform" + ] + is_template = true + force_name = true + create_codeowners = false + enforce_prs = false + collaborators = local.collaborators + admin_teams = [github_team.team.name] } - -