A Terraform module for the creation of Function Apps
module "this" {
source = "git@github.com:moneyadviceservice/terraform-module-function-app?ref=main"
product = var.product
env = var.env
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 |
functions_storage_account | github.com/moneyadviceservice/terraform-module-storage-account | add_module |
Name | Type |
---|---|
azurerm_linux_function_app.this | resource |
azurerm_service_plan.this | resource |
azurerm_windows_function_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 |
allow_nested_items_to_be_public | (Optional) Allow or disallow nested items within this Account to opt into being public | bool |
false |
no |
app_scale_limit | (Optional) The number of workers this function app can scale out to. | number |
200 |
no |
app_settings | (Optional) A map of key-value pairs for App Settings and custom values. | map(string) |
n/a | yes |
create_service_plan | If true a new service plan is created | bool |
true |
no |
default_action | (Optional) Network rules default action | string |
"Allow" |
no |
dotnet_stack | n/a | bool |
false |
no |
dotnet_version | (Optional) The version of .NET to use. | string |
"v8.0" |
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 |
java_stack | n/a | bool |
false |
no |
java_version | (Optional) The version of Java to use. | string |
"17" |
no |
location | n/a | string |
"UK South" |
no |
name | The name of your function app | string |
n/a | yes |
node_stack | n/a | bool |
false |
no |
node_version | (Optional) The version of Node to run. | string |
"20" |
no |
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 |
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 |
sa_replication_type | n/a | string |
"ZRS" |
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 |
use_dotnet_isolated_runtime | (Optional) Should the DotNet process use an isolated runtime. Defaults to false. | bool |
true |
no |
Name | Description |
---|---|
app_insights_app_id | n/a |
function_app_default_hostname | n/a |
function_app_id | n/a |
function_app_name | n/a |
instrumentation_key | n/a |
sa_primary_access_key | n/a |