Manages an App Service Static Site.
- Format and validate Terraform code before commit.
terraform init -upgrade \
&& terraform init -reconfigure -upgrade \
&& terraform fmt -recursive . \
&& terraform fmt -check \
&& terraform validate .- Always fetch latest changes from upstream and rebase from it. Terraform documentation will always be updated with GitHub Actions. See also .github/workflows/terraform.yml GitHub Actions workflow.
git fetch --all --tags --prune --prune-tags \
&& git pull --rebase --all --prune --tags| Name | Version |
|---|---|
| terraform | >= 1.8.5 |
| azurerm | >= 4.22.0, < 5.0.0 |
| Name | Version |
|---|---|
| azurerm | 4.27.0 |
No modules.
| Name | Type |
|---|---|
| azurerm_dns_cname_record.static_site_cname_record | resource |
| azurerm_dns_zone.tensio_zone | resource |
| azurerm_resource_group_template_deployment.static_site_appsettings | resource |
| azurerm_static_site.static_site | resource |
| azurerm_static_site_custom_domain.static_site_custom_domain | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| app_name | (Required) Name of this resource within the system it belongs to (see naming convention guidelines). Will be part of the final name of the deployed resource. |
string |
n/a | yes |
| app_settings | (Optional) A key value block of application settings. | map(string) |
{} |
no |
| custom_domain_name | (Optional) A custom domain name for the static site. Example: name = "ferdigmelding" zone_name = "tensio.no" validation_type = "cname-delegation" |
object({ |
null |
no |
| environment | (Required) The name of the environment. | string |
n/a | yes |
| identity | (Optional) An identity block as defined below which contains the Managed Service Identity information for this resource. | object( |
{ |
no |
| override_location | (Optional) Override the location of the resource. Under normal circumstances, it should not be used. | string |
null |
no |
| override_name | (Optional) Override the name of the resource. Under normal circumstances, it should not be used. | string |
null |
no |
| resource_group | (Required) The resource group in which to create the resource. | any |
n/a | yes |
| sku_size | (Optional) Specifies the SKU size of the Static Web App. Possible values are Free or Standard. Defaults to Free. |
string |
"Free" |
no |
| sku_tier | (Optional) Specifies the SKU tier of the Static Web App. Possible values are Free or Standard. Defaults to Free. |
string |
"Free" |
no |
| system_short_name | (Required) Short abbreviation (to-three letters) of the system name that this resource belongs to (see naming convention guidelines). Will be part of the final name of the deployed resource. |
string |
n/a | yes |
| tags | (Optional) A mapping of tags to assign to the resource. | map(string) |
{} |
no |
| Name | Description |
|---|---|
| azurerm_static_site | The Azure App Service Static Site resource. |