Skip to content

Commit

Permalink
Update projects Terraform config for View field
Browse files Browse the repository at this point in the history
  • Loading branch information
justinretzolk committed Jul 24, 2023
1 parent d71a417 commit bac3679
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions infrastructure/repository/projects.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,28 @@ variable "team_project_field_status_values" {
}
}

variable "team_project_field_view_values" {
type = map(string)
description = "A mapping of the options in the view field in the main team project to their IDs"
default = {
"Working Board" = "8d366764",
"Parner Contributions" = "b0492564",
"External Maintainer" = "f17c472c",
"S3 Backend" = "5c656f1e",
"Engineering Initiative" = "a62d09b9"
}
}

resource "github_actions_variable" "team_project_field_status_option_ids" {
for_each = var.team_project_field_status_values
repository = "terraform-provider-aws"
variable_name = "team_project_status_${replace(lower(each.key), " ", "_")}"
value = each.value
}

resource "github_actions_variable" "team_project_field_view_option_ids" {
for_each = var.team_project_field_view_values
repository = "terraform-provider-aws"
variable_name = "team_project_view_${replace(lower(each.key), " ", "_")}"
value = each.value
}

0 comments on commit bac3679

Please sign in to comment.