Skip to content

Latest commit

 

History

History

terraform

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Terraform configuration

The following variables must be defined in order to deploy the API for this function app:

Requirements

Name Version
azurerm >=3.40.0

Providers

Name Version
azurerm >=3.40.0

Modules

No modules.

Resources

Name Type
azurerm_api_management_api.wastewater-graphql-api resource
azurerm_api_management_product.ww-product resource
azurerm_api_management_product_api.ww-product-api resource
azurerm_api_management_product_policy.ww-product-policy resource
azurerm_api_management_subscription.ww-product-subscription resource
azurerm_api_management.apim data source
azurerm_resource_group.api-resource-group data source

Inputs

Name Description Type Default Required
api_display_name The display name of the API. string "Wastewater GraphQL API" no
api_name The name of the API Management API. Changing this forces a new resource to be created. string "wastewater-graphql-api" no
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
apim APIM to create API in string n/a yes
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)
list(object({
group = string
name = string
description = string
subscriptions = number
suspended = list(number)
}))
[
{
"description": "National Microbiology Laboratory",
"group": "nml-lab",
"name": "NML",
"subscriptions": 15,
"suspended": []
},
{
"description": "Correctional Service Canada",
"group": "csc",
"name": "CSC",
"subscriptions": 15,
"suspended": []
},
{
"description": "BC Centre for Disease Control",
"group": "bccdc",
"name": "BCCDC",
"subscriptions": 15,
"suspended": []
},
{
"description": "Haines Junction (Yukon)",
"group": "hnj",
"name": "HNJ",
"subscriptions": 15,
"suspended": []
},
{
"description": "Ontario Ministry of the Environment, Conservation and Parks",
"group": "omecp",
"name": "OMECP",
"subscriptions": 15,
"suspended": []
},
{
"description": "Public Health Ontario",
"group": "pho",
"name": "PHO",
"subscriptions": 15,
"suspended": []
},
{
"description": "Manitoba grouping for PHAC",
"group": "MB",
"name": "MB",
"subscriptions": 5,
"suspended": []
}
]
no
function_app_url Absolute URL of the backend service implementing this API. string n/a yes
resource_group Resource group to use string n/a yes
subscription_id Azure subscription id string n/a yes

Outputs

Name Description
subscription_keys Subscription primary and secondary keys