A Terraform module for the creation of App Services.
module "this" {
source = "[email protected]:moneyadviceservice/terraform-module-app-services?ref=main"
product = var.product
env = var.env
name = var.name
os_type = "Linux"
resource_group_name = data.azurerm_resource_group.this.name
}
No requirements.
Name | Version |
---|---|
azurerm | n/a |
Name | Source | Version |
---|---|---|
application_insights | github.com/moneyadviceservice/terraform-module-application-insights | add_module |
Name | Type |
---|---|
azurerm_linux_web_app.this | resource |
azurerm_monitor_autoscale_setting.scale_out | resource |
azurerm_service_plan.this | resource |
azurerm_windows_web_app.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
account_kind | (Optional) Defines the Kind of account | string |
"StorageV2" |
no |
account_replication_type | (Required) Defines the type of replication to use for this storage account. | string |
"ZRS" |
no |
app_command_line | (Optional) The App command line to launch. | string |
null |
no |
app_settings | (Optional) A map of key-value pairs for App Settings and custom values. | map(string) |
{} |
no |
connection_strings | Connection strings for App Service. See documentation | list(map(string)) |
[] |
no |
create_service_plan | If true a new service plan is created | bool |
true |
no |
dotnet_stack | n/a | bool |
false |
no |
dotnet_version | (Optional) The version of .NET to use. | string |
"8.0" |
no |
enable_client_affinity | (Optional) Should Client Affinity be enabled? | bool |
false |
no |
enable_vnet_integration | Enable integration with a virtual network | bool |
false |
no |
env | The environment to deploy to | string |
n/a | yes |
ftps_state | (Optional) State of FTP / FTPS service for this Windows Function App. | string |
null |
no |
https_only | (Optional) Should the Web App require HTTPS connections. | bool |
true |
no |
location | n/a | string |
"UK South" |
no |
name | The name of your function app | string |
n/a | yes |
os_type | (Required) The O/S type for the App Services to be hosted in this plan. | string |
"Linux" |
no |
product | The product name | string |
n/a | yes |
public_network_access_enabled | Enable public network access | bool |
true |
no |
resource_group_name | The resource group your function app will be assigned to | string |
n/a | yes |
sa_account_tier | (Required) Defines the Tier to use for this storage account | string |
"Standard" |
no |
service_plan_id | If you want to use an existing service plan | string |
null |
no |
sku_name | (Required) The SKU for the plan. | string |
"Y1" |
no |
staging_slot_custom_app_settings | Override staging slot with custom app settings. | map(string) |
null |
no |
staging_slot_enabled | Create a staging slot alongside the App Service for blue/green deployment purposes. See documentation. | bool |
true |
no |
staging_slot_site_config | Staging slot site config for App Service. | any |
{} |
no |
subnet_id | The ID of the subnet to connect to | string |
null |
no |
tags | A mapping of tags assigned to the Resource. | map(string) |
{} |
no |
zone_redundant | Should the Service Plan balance across Availability Zones in the region? | bool |
false |
no |
Name | Description |
---|---|
app_insights_app_id | n/a |
app_service_id | n/a |
app_service_name | n/a |
instrumentation_key | n/a |
system_assigned_identity_object_id | n/a |