Initial put
This commit is contained in:
42
quickstart/101-azure-functions/variables.tf
Normal file
42
quickstart/101-azure-functions/variables.tf
Normal file
@@ -0,0 +1,42 @@
|
||||
variable "resource_group_name_prefix" {
|
||||
type = string
|
||||
default = "rg"
|
||||
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
|
||||
}
|
||||
|
||||
variable "resource_group_location" {
|
||||
type = string
|
||||
default = "eastus"
|
||||
description = "Location of the resource group."
|
||||
}
|
||||
|
||||
variable "appName" {
|
||||
type = string
|
||||
default = "fnapp${random_string.unique_id.result}"
|
||||
description = "The name of the function app that you wish to create."
|
||||
}
|
||||
|
||||
variable "storageAccountType" {
|
||||
type = string
|
||||
default = "Standard_LRS"
|
||||
validation {
|
||||
condition = contains(["Standard_LRS", "Standard_GRS", "Standard_RAGRS"], var.storageAccountType)
|
||||
error_message = "Must be one of Standard_LRS, Standard_GRS, Standard_RAGRS"
|
||||
}
|
||||
description = "Storage Account type"
|
||||
}
|
||||
|
||||
variable "appInsightsLocation" {
|
||||
type = string
|
||||
description = "Location for Application Insights"
|
||||
}
|
||||
|
||||
variable "runtime" {
|
||||
type = string
|
||||
default = "node"
|
||||
validation {
|
||||
condition = contains(["node", "dotnet", "java"], var.runtime)
|
||||
error_message = "Must be one of node, dotnet, java"
|
||||
}
|
||||
description = "The language worker runtime to load in the function app."
|
||||
}
|
||||
Reference in New Issue
Block a user