Skip to content

Commit

Permalink
adding setup terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 9, 2024
1 parent dbe3556 commit 84debed
Showing 1 changed file with 35 additions and 15 deletions.
50 changes: 35 additions & 15 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ locals {
collaborators = {
naray007 = "push",
morga471 = "admin",
lolli001 = "push",
lolli001 = "pull",
gomez385 = "admin"
}
pull_request_bypassers = [
Expand All @@ -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"
Expand Down Expand Up @@ -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]
}


0 comments on commit 84debed

Please sign in to comment.