Skip to content

Commit

Permalink
chore: update terraform to generate keys for 2 new groups (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
wvxcheung and github-actions[bot] authored Jul 4, 2024
1 parent 79b302d commit 2e24ebb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ No modules.
| <a name="input_api_name"></a> [api\_name](#input\_api\_name) | The name of the API Management API. Changing this forces a new resource to be created. | `string` | `"wastewater-graphql-api"` | no |
| <a name="input_api_path"></a> [api\_path](#input\_api\_path) | The Path for this API Management API, which is a relative URL which uniquely identifies this API and all of its resource paths within the API Management Service. | `string` | `"wastewater"` | no |
| <a name="input_apim"></a> [apim](#input\_apim) | APIM to create API in | `string` | n/a | yes |
| <a name="input_auth_groups"></a> [auth\_groups](#input\_auth\_groups) | List of authorization groups, their display name, and their description. The value of `group` must match the groups defined in (auth.ts)(graphql/auth.ts) | <pre>list(object({<br> group = string<br> name = string<br> description = string<br> subscriptions = number<br> suspended = list(number)<br> }))</pre> | <pre>[<br> {<br> "description": "National Microbiology Laboratory",<br> "group": "nml-lab",<br> "name": "NML",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Correctional Service Canada",<br> "group": "csc",<br> "name": "CSC",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "BC Centre for Disease Control",<br> "group": "bccdc",<br> "name": "BCCDC",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Haines Junction (Yukon)",<br> "group": "hnj",<br> "name": "HNJ",<br> "subscriptions": 15,<br> "suspended": []<br> }<br>]</pre> | no |
| <a name="input_auth_groups"></a> [auth\_groups](#input\_auth\_groups) | List of authorization groups, their display name, and their description. The value of `group` must match the groups defined in (auth.ts)(graphql/auth.ts) | <pre>list(object({<br> group = string<br> name = string<br> description = string<br> subscriptions = number<br> suspended = list(number)<br> }))</pre> | <pre>[<br> {<br> "description": "National Microbiology Laboratory",<br> "group": "nml-lab",<br> "name": "NML",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Correctional Service Canada",<br> "group": "csc",<br> "name": "CSC",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "BC Centre for Disease Control",<br> "group": "bccdc",<br> "name": "BCCDC",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Haines Junction (Yukon)",<br> "group": "hnj",<br> "name": "HNJ",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Ontario Ministry of the Environment, Conservation and Parks",<br> "group": "omecp",<br> "name": "OMECP",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Public Health Ontario",<br> "group": "pho",<br> "name": "PHO",<br> "subscriptions": 15,<br> "suspended": []<br> }<br>]</pre> | no |
| <a name="input_function_app_url"></a> [function\_app\_url](#input\_function\_app\_url) | Absolute URL of the backend service implementing this API. | `string` | n/a | yes |
| <a name="input_resource_group"></a> [resource\_group](#input\_resource\_group) | Resource group to use | `string` | n/a | yes |
| <a name="input_subscription_id"></a> [subscription\_id](#input\_subscription\_id) | Azure subscription id | `string` | n/a | yes |
Expand Down
16 changes: 14 additions & 2 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ variable "auth_groups" {
description = "National Microbiology Laboratory"
subscriptions = 15
suspended = []

},
{ group = "csc"
name = "CSC"
Expand All @@ -34,7 +33,20 @@ variable "auth_groups" {
description = "Haines Junction (Yukon)"
subscriptions = 15
suspended = []
}]
},
{ group = "omecp"
name = "OMECP"
description = "Ontario Ministry of the Environment, Conservation and Parks"
subscriptions = 15
suspended = []
},
{ group = "pho"
name = "PHO"
description = "Public Health Ontario"
subscriptions = 15
suspended = []
},
]
}

# Azure subscription id
Expand Down

0 comments on commit 2e24ebb

Please sign in to comment.