variable "subscription_id" {
description = "Azure subscription ID (az account show --query id -o tsv)"
type = string
}
variable "location" {
description = "Region for every resource"
type = string
default = "eastus"
}
variable "resource_group_name" {
type = string
default = "rg-employee-app-tf"
}
variable "prefix" {
description = "Short name used to build resource names"
type = string
default = "employee"
}
variable "use_cosmos_free_tier" {
description = "Use the Cosmos DB free tier (only ONE account per subscription may have it). If false, Serverless mode is used."
type = bool
default = true
}
variable "cosmos_database_name" {
type = string
default = "employeesdb"
}
variable "cosmos_container_name" {
type = string
default = "employeeProfile"
}
variable "apim_publisher_name" {
type = string
default = "Employee App"
}
variable "apim_publisher_email" {
description = "Required by API Management; any valid email"
type = string
}
variable "static_web_app_name" {
description = "Existing Static Web App (its CORS origin is allowed in APIM)"
type = string
default = "azure-static-web-app"
}
variable "static_web_app_resource_group" {
description = "Resource group of the existing Static Web App"
type = string
default = "POC"
}
variable "deploy_function_code" {
description = "Publish ../azure_functions with 'func' after the Function App is created (needs az login + Functions Core Tools)"
type = bool
default = true
}