This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
68 lines (59 loc) · 1.67 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
# The root module parameters (input variables).
variable "aws_region" {
description = <<-EOT
Region of the AWS service endpoint.
Appears to be required to be set by the AWS provider.
EOT
type = string
nullable = false
default = "eu-west-2"
}
variable "google_project" {
description = <<-EOT
Existing Google Cloud project that is going to
contain all infrasturture for this deployment.
EOT
type = string
nullable = false
default = "infernal-horse"
}
variable "google_region" {
description = <<-EOT
A Google Cloud region to host all regional resources
for this deployment.
EOT
type = string
nullable = false
default = "europe-west2"
}
variable "service_fqdn" {
description = <<-EOT
The FQDN on which the service is going to accept HTTPS connections.
The leftmost part is going to be the name of the service.
EOT
type = string
nullable = false
default = "hello-service.dev.devilmicelabs.com"
validation {
condition = length(var.service_fqdn) > 2 && length(split(".", var.service_fqdn)) > 1
error_message = "The value must be a fully-qualified domain name."
}
}
variable "certificate_path" {
description = <<-EOT
The location in the local file system where the TLS certificate
and its private key files are stored.
EOT
type = string
nullable = false
default = "~/cert-prod-0/"
}
variable "simulate_failure" {
description = <<-EOT
Set to true to simulate global ALB failure via fault injection.
The ALB will respond with error 500 to all requests until reverted.
EOT
type = bool
nullable = false
default = false
}