Skip to content

Commit

Permalink
adding a workspace for managing service accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 20, 2024
1 parent 205ce05 commit 418ef4f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,45 @@ module "ghe_runners" {
collaborators = local.collaborators
}

module "aws-service-accounts" {
source = "git@github.e.it.census.gov:CSVD/terraform-github-repo"
github_repo_description = "Manage Repo Specific Runners"
repo_org = "arnol377"
name = "aws-service-accounts"
github_repo_topics = [
"terraform"
]
force_name = true
github_is_private = false
create_codeowners = false
enforce_prs = true
collaborators = local.collaborators
pull_request_bypassers = local.pull_request_bypassers
managed_extra_files = [
{
path = ".github/workflows/terraform-plan.yaml"
content = templatefile(
"${path.module}/workflows/terraform-plan.yaml.tpl",
{
repo_name = "aws-image-pipeline",
directory = null
git_owner = {
name = "arnol377"
email = "david.j.arnold.jr@census.gov"
}
}
)
},
{
path = ".github/workflows/terraform-apply.yaml"
content = templatefile(
"${path.module}/workflows/terraform-apply.yaml.tpl",
{
repo_name = "aws-image-pipeline",
directory = null
}
)
}
]
}

0 comments on commit 418ef4f

Please sign in to comment.