Skip to content

Repository files navigation

Manages an App Service Static Site.

Getting Started

  • 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

Requirements

Name Version
terraform >= 1.8.5
azurerm >= 4.22.0, < 5.0.0

Providers

Name Version
azurerm 4.27.0

Modules

No modules.

Resources

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

Inputs

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({
name = string
zone_name = string
validation_type = string
})
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(
{
type = string # (Required) Specifies the type of Managed Service Identity that should be configured on this resource. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned (to enable both).
identity_ids = optional(list(string)) # (Optional) A list of User Assigned Managed Identity IDs to be assigned to this resource.
}
)
{
"type": "SystemAssigned"
}
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

Outputs

Name Description
azurerm_static_site The Azure App Service Static Site resource.

About

Manages an App Service Static Site.

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages