-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathvariables.tf
89 lines (75 loc) · 2.18 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
80
81
82
83
84
85
86
87
88
89
variable "default_tags" {
type = map(string)
description = "Map of default tags to apply to resources"
default = {
project = "learning-live-with-aws-hashicorp"
}
}
variable "region" {
type = string
description = "The region to deploy resources to"
default = "us-east-1"
}
# VPC Variables
variable "vpc_cidr" {
type = string
description = "CIDR block for VPC"
default = "10.255.0.0/20"
}
variable "public_subnet_count" {
type = number
description = "Number of public subnets to create"
default = 2
}
variable "private_subnet_count" {
type = number
description = "Number of private subnets to create"
default = 3
}
variable "database_private_ip" {
type = string
description = "Private ip address of database. Make sure the IP is within the range of the vpc_cidr variable."
default = "10.255.2.253"
}
variable "ec2_key_pair" {
type = string
description = "EC2 key pair"
}
variable "database_service_name" {
type = string
description = "Database service name"
default = "database"
}
variable "database_message" {
type = string
description = "Database message"
default = "Hello from the database"
}
variable "consul_server_count" {
type = number
description = "The number of Consul Servers to create"
default = 3
}
variable "consul_server_allowed_cidr_blocks" {
type = list(string)
description = "List of valid IPv4 CIDR blocks that can access the consul servers from the public internet."
default = ["0.0.0.0/0"]
}
variable "consul_server_allowed_cidr_blocks_ipv6" {
type = list(string)
description = "List of valid IPv6 CIDR blocks that can access the consul servers from the public internet."
default = ["::/0"]
}
variable "consul_dc1_name" {
type = string
description = "Name of Consul datacenter"
default = "dc1"
}
variable "tfc_organization" {
description = "Name of Terraform Cloud Organization. Set in TFC workspace variables or via variable file."
type = string
}
variable "tfc_workspace_tag" {
description = "Name of Terraform Cloud Tag. All created workspaces share this tag."
type = string
}