forked from gruntwork-io/terraform-google-load-balancer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
79 lines (65 loc) · 2.81 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These variables are expected to be passed in by the operator
# ---------------------------------------------------------------------------------------------------------------------
variable "project" {
description = "The project ID to create the resources in."
type = string
}
variable "region" {
description = "The region to create the resources in."
type = string
}
variable "zone" {
description = "The availability zone to create the sample compute instances in. Must within the region specified in 'var.region'"
type = string
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These variables have defaults, but may be overridden by the operator.
# ---------------------------------------------------------------------------------------------------------------------
variable "name" {
description = "Name for the load balancer forwarding rule and prefix for supporting resources."
type = string
default = "http-multi-backend"
}
variable "enable_ssl" {
description = "Set to true to enable ssl. If set to 'true', you will also have to provide 'var.custom_domain_name'."
type = bool
default = false
}
variable "enable_http" {
description = "Set to true to enable plain http. Note that disabling http does not force SSL and/or redirect HTTP traffic. See https://issuetracker.google.com/issues/35904733"
type = bool
default = true
}
variable "static_content_bucket_location" {
description = "Location of the bucket that will store the static content. Once a bucket has been created, its location can't be changed. See https://cloud.google.com/storage/docs/bucket-locations"
type = string
default = "US"
}
variable "create_dns_entry" {
description = "If set to true, create a DNS A Record in Cloud DNS for the domain specified in 'custom_domain_name'."
type = bool
default = false
}
variable "custom_domain_name" {
description = "Custom domain name."
type = string
default = ""
}
variable "dns_managed_zone_name" {
description = "The name of the Cloud DNS Managed Zone in which to create the DNS A Record specified in var.custom_domain_name. Only used if var.create_dns_entry is true."
type = string
default = "replace-me"
}
variable "dns_record_ttl" {
description = "The time-to-live for the load balancer A record (seconds)"
type = string
default = 60
}
variable "custom_labels" {
description = "A map of custom labels to apply to the resources. The key is the label name and the value is the label value."
type = map(string)
default = {}
}