109 lines
2.9 KiB
HCL
109 lines
2.9 KiB
HCL
variable "subscription_id" {
|
|
description = "The subscription ID for Azure"
|
|
type = string
|
|
}
|
|
|
|
variable "tenant_id" {
|
|
description = "The Tennant ID for Azure"
|
|
type = string
|
|
}
|
|
|
|
|
|
variable "backend_resource_group_name" {
|
|
description = "The resource group name for the backend"
|
|
type = string
|
|
}
|
|
|
|
variable "backend_storage_account_name" {
|
|
description = "The storage account name for the backend"
|
|
type = string
|
|
}
|
|
|
|
variable "backend_container_name" {
|
|
description = "The container name for the backend"
|
|
type = string
|
|
}
|
|
|
|
variable "backend_key" {
|
|
description = "The key for the backend state file"
|
|
type = string
|
|
}
|
|
|
|
variable "resource_group_name" {
|
|
type = string
|
|
default = ""
|
|
description = "The name of the Azure resource group. If blank, a random name will be generated."
|
|
}
|
|
|
|
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 "sa_account_tier" {
|
|
description = "The tier of the storage account. Possible values are Standard and Premium."
|
|
type = string
|
|
default = "Standard"
|
|
}
|
|
|
|
variable "sa_account_replication_type" {
|
|
description = "The replication type of the storage account. Possible values are LRS, GRS, RAGRS, and ZRS."
|
|
type = string
|
|
default = "LRS"
|
|
}
|
|
|
|
variable "sa_name" {
|
|
description = "The name of the storage account. If blank, a random name will be generated."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "ws_name" {
|
|
description = "The name of the Log Analytics workspace. If blank, a random name will be generated."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "ai_name" {
|
|
description = "The name of the Application Insights instance. If blank, a random name will be generated."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "asp_name" {
|
|
description = "The name of the App Service Plan. If blank, a random name will be generated."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "fa_name" {
|
|
description = "The name of the Function App. If blank, a random name will be generated."
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "asp_sku_name" {
|
|
description = "The SKU of the App Service Plan hosting the Function App. Must be a Dedicated or Premium SKU to support custom containers (e.g. B1, P1v2, EP1)."
|
|
type = string
|
|
default = "B1"
|
|
}
|
|
|
|
variable "container_image_name" {
|
|
description = "The Docker Hub image name (without tag) to deploy to the Function App."
|
|
type = string
|
|
default = "idjohnson/dadjokeapp"
|
|
}
|
|
|
|
variable "container_image_tag" {
|
|
description = "The tag of the Docker Hub image to deploy to the Function App."
|
|
type = string
|
|
default = "0.1"
|
|
}
|