Skip to content

Files

infrastructure

App infrastructure

Add any application specific infrastructure to the terraform files in this folder

This could be things like:

  • a database
  • redis
  • vault
  • application insights

Contributing

Ensure that infrastructure code is formatted and automatically documented using the pre-commit hooks. Install it with:

$ brew install pre-commit terraform-docs
$ pre-commit install

If you add a new hook make sure to run it against all files:

$ pre-commit run --all-files

Requirements

Name Version
azurerm 3.108.0

Providers

Name Version
azurerm 3.108.0

Modules

Name Source Version
apim_subscription_portal git@github.com:hmcts/cnp-module-api-mgmt-subscription master
apim_subscription_powerplatform git@github.com:hmcts/cnp-module-api-mgmt-subscription master
apim_subscription_smoketest git@github.com:hmcts/cnp-module-api-mgmt-subscription master
pre-api-exception-alert git@github.com:hmcts/cnp-module-metric-alert n/a
pre-api-liveness-alert git@github.com:hmcts/cnp-module-metric-alert n/a
pre-api-mgmt-api-policy git@github.com:hmcts/cnp-module-api-mgmt-api-policy master
pre_api git@github.com:hmcts/cnp-module-api-mgmt-api master
pre_product git@github.com:hmcts/cnp-module-api-mgmt-product master

Resources

Name Type
azurerm_key_vault_secret.apim_subscription_portal_primary_key resource
azurerm_key_vault_secret.apim_subscription_portal_secondary_key resource
azurerm_key_vault_secret.apim_subscription_powerplatform_primary_key resource
azurerm_key_vault_secret.apim_subscription_powerplatform_secondary_key resource
azurerm_key_vault_secret.apim_subscription_smoketest_primary_key resource
azurerm_key_vault_secret.apim_subscription_smoketest_secondary_key resource
azurerm_application_insights.app_insights data source
azurerm_key_vault.keyvault data source
azurerm_monitor_action_group.action_group data source
azurerm_resource_group.rg data source

Inputs

Name Description Type Default Required
common_tags n/a map(string) n/a yes
component n/a any n/a yes
env n/a any n/a yes
location n/a string "UK South" no
product n/a any n/a yes
subscription n/a any n/a yes