avm-res-web-staticsite
Azure/avm-res-web-staticsite/azurerm
AVM Terraform module for azure static web apps
terraform-azurerm-avm-res-web-staticsite Module to deploy Static Web Apps in Azure. > Note: After the Static Site is provisioned, you'll need to associate your target repository, which contains your web app, to the Static Site, by following the Azure Static Site document. This includes manually configuring the respective YAML file for the GitHub Actions workflow to run. Requirements The following requirements are needed by this module: - terraform (>= 1.7.0) - azapi (~> 2.0, azurerm (~> 4.0, ~> 4.3, modtm (~> 0.3) - random (>= 3.5.0, < 4.0.0) Resources The following resources are used by this module: - azapi_update_resource.this (resource) - azurerm_dns_cname_record.this (resource) - azurerm_dns_txt_record.this (resource) - azurerm_management_lock.pe (resource) - azurerm_management_lock.th
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | The name of the this resource. | required |
| location | string | Azure region where the resource should be deployed. | required |
| resource_group_name | string | The resource group where the resources will be deployed. | required |
| all_child_resources_inherit_lock | bool | Whether all child resources should inherit the locks of the parent resource. | true |
| branch | string | The branch of the repository to deploy. | null |
| configuration_file_changes_enabled | bool | Should changes to the configuration file be permitted? Defaults to `true`. | true |
| enable_telemetry | bool | This variable controls whether or not telemetry is enabled for the module. F | true |
| basic_auth_enabled | bool | Whether or not basic authentication should be enabled. Needs to be set to `true` | false |
| private_endpoints_manage_dns_zone_group | bool | Whether to manage private DNS zone groups with this module. If set to false, you | true |
| role_assignments | map(object({ role_definiti | A map of role assignments to create on this resource. The map key is deliberat | {} |
| sku_tier | string | The tier of the SKU. The SKU tier must be one of: `Free`, `Standard`. | "Free" |
| tags | map(string) | A map of tags that will be applied to the Static Web App. | null |
| all_child_resources_inherit_tags | bool | Whether all child resources should inherit the tags of the parent resource. | true |
| app_settings | map(string) | A map of app settings to assign to the static site. ```terraform app_sett | {} |
| basic_auth | object({ password = st | Object that controls basic authentication access ```terraform basic_auth | null |
| lock | object({ kind = string | The lock level to apply. Default is `None`. Possible values are `CanNotDelete` a | null |
| managed_identities | object({ system_assigned | Controls the Managed Identity configuration on this resource. The following pr | {} |
| private_endpoints_inherit_lock | bool | Whether private endpoints should inherit the lock of the parent resource. | true |
| repository_url | string | The repository URL of the static site. | null |
| custom_domains | map(object({ resource_grou | A map of custom domains to assign to the static site. - `resource_group_nam | {} |
| preview_environments_enabled | bool | Are Preview (Staging) environments enabled? Defaults to `true`. | true |
| private_endpoints | map(object({ name = option | A map of private endpoints to create on this resource. The map key is delibera | {} |
| public_network_access_enabled | bool | Should public network access be enabled for the Static Web App. Defaults to `tru | true |
name — The name of the static web app.resource — This is the full output for the resource.resource_id — The ID of the static web app.resource_private_endpoints — A map of private endpoints. The map key is the supplied input to var.private_endpoints. The map valuresource_uri — The default hostname of the static web app.api_key — The API key of this static web app.domains — The domains of this static web app.