avm-res-web-staticsite

Azure/avm-res-web-staticsite/azurerm

Terraform Module HCL AZURERM ✓ Verified

AVM Terraform module for azure static web apps

Install
module "avm-res-web-staticsite" {
source = "Azure/avm-res-web-staticsite/azurerm"
version = "0.6.2"
}
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (24)
NameTypeDescriptionDefault
namestringThe name of the this resource. required
locationstringAzure region where the resource should be deployed. required
resource_group_namestringThe resource group where the resources will be deployed. required
all_child_resources_inherit_lockboolWhether all child resources should inherit the locks of the parent resource.true
branchstringThe branch of the repository to deploy.null
configuration_file_changes_enabledboolShould changes to the configuration file be permitted? Defaults to `true`.true
enable_telemetrybool This variable controls whether or not telemetry is enabled for the module. Ftrue
basic_auth_enabledboolWhether or not basic authentication should be enabled. Needs to be set to `true`false
private_endpoints_manage_dns_zone_groupboolWhether to manage private DNS zone groups with this module. If set to false, youtrue
role_assignmentsmap(object({ role_definiti A map of role assignments to create on this resource. The map key is deliberat{}
sku_tierstringThe tier of the SKU. The SKU tier must be one of: `Free`, `Standard`."Free"
tagsmap(string) A map of tags that will be applied to the Static Web App. null
all_child_resources_inherit_tagsboolWhether all child resources should inherit the tags of the parent resource.true
app_settingsmap(string) A map of app settings to assign to the static site. ```terraform app_sett{}
basic_authobject({ password = st Object that controls basic authentication access ```terraform basic_authnull
lockobject({ kind = string The lock level to apply. Default is `None`. Possible values are `CanNotDelete` anull
managed_identitiesobject({ system_assigned Controls the Managed Identity configuration on this resource. The following pr{}
private_endpoints_inherit_lockboolWhether private endpoints should inherit the lock of the parent resource.true
repository_urlstringThe repository URL of the static site.null
custom_domainsmap(object({ resource_grou A map of custom domains to assign to the static site. - `resource_group_nam{}
preview_environments_enabledbool Are Preview (Staging) environments enabled? Defaults to `true`.true
private_endpointsmap(object({ name = option A map of private endpoints to create on this resource. The map key is delibera{}
public_network_access_enabledboolShould public network access be enabled for the Static Web App. Defaults to `trutrue
Outputs (7)
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 valu
resource_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.
Resources (11)
azapi_update_resourceazurerm_dns_cname_recordazurerm_dns_txt_recordazurerm_management_lockazurerm_private_endpointazurerm_private_endpoint_application_security_group_associationazurerm_role_assignmentazurerm_static_web_appazurerm_static_web_app_custom_domainmodtm_telemetryrandom_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version0.6.2
Cloud AZURERM
★ Stars4
Forks11
Total downloads45.3k
Inputs24
Outputs7
Resources11
Examples5
LicenseMIT
NamespaceAzure
Updated