forked from futurice/terraform-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
45 lines (38 loc) · 1.22 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
variable "resource_group_name" {
type = string
description = "Name of the resource group where resources are to be deployed"
}
variable "alert_email_address" {
type = string
description = "Email address where alert emails are sent"
}
variable "name_prefix" {
type = string
description = "Name prefix to use for resources that need to be created (only lowercase characters and hyphens allowed)"
default = "azure-app-example--"
}
variable "app_service_name" {
type = string
description = "Name for the app service"
default = "appservice"
}
# https://www.terraform.io/docs/providers/azurerm/r/application_insights.html#application_type
variable "app_insights_app_type" {
type = string
description = "The type of Application Insights to create."
default = "other"
}
# https://azure.microsoft.com/en-gb/pricing/details/app-service/linux/
variable "app_service_plan_tier" {
type = string
description = "App service plan's tier"
default = "PremiumV2"
}
variable "app_service_plan_size" {
type = string
description = "App service plan's size"
default = "P1v2"
}
locals {
cleansed_prefix = replace(var.name_prefix, "/[^a-zA-Z0-9]+/", "")
}