# Terraform Modules

Reference documentation for Forge's Terraform modules, generated from the `README.md` in each module's source directory under `src/terraform/`.

| Module | Description |
|--------|-------------|
| [saif-api-service](saif-api-service/index.md) | This is a module for deploying an API to an App Service Plan and add that API to an API Management Service. |
| [saif-application-permissions](saif-application-permissions/index.md) | This Terraform module manages permissions and roles for an existing Azure Entra ID (Azure Active Directory) application. It is designed to work with applications named using the pattern `{project-id}-{environment-short-name}`. |
| [saif-business-roles-corp](saif-business-roles-corp/index.md) |  |
| [saif-business-roles-external](saif-business-roles-external/index.md) |  |
| [saif-event-service](saif-event-service/index.md) |  |
| [saif-event-subscriber-service](saif-event-subscriber-service/index.md) |  |
| [saif-openapi](saif-openapi/index.md) |  |
| [saif-staticsite-service](saif-staticsite-service/index.md) | This module is for deploying resources that are owned by a Team |
| [saif-utilities](saif-utilities/index.md) | This repository provides reusable Terraform utility modules for Azure infrastructure with standardized naming and validation patterns. |
| [saif-web-service](saif-web-service/index.md) | This module deploys a frontend web application to Azure App Service. |
| [saif-resources](saif-resources/index.md) | Composable Terraform resource modules for Forge service infrastructure. |

## Registries

Each release publishes these modules to the HCP Terraform private registry (`app.terraform.io/SAIFCorp/<name>/<system>`) and to the Pulumi Cloud private registry (`tf.pulumi.com/saif-corp/<name>/<system>`) with the same version. The `<name>/<system>` pair is the same in both registries, for example `app.terraform.io/SAIFCorp/resources/saif` is `tf.pulumi.com/saif-corp/resources/saif`. Deprecated aliases are published to HCP Terraform only.

Terraform and OpenTofu authenticate to `tf.pulumi.com` with a Pulumi access token in the `TF_TOKEN_tf_pulumi_com` environment variable. Converted Pulumi packages need Pulumi CLI 3.248.0 or newer. Forge modules that call other Forge modules use `tf.pulumi.com` sources for those nested calls, so any workspace or pipeline that installs them, including from HCP Terraform, also needs that token.
