forked from hashicorp/vault-guides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
86 lines (71 loc) · 3.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
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
# ---------------------------------------------------------------------------------------------------------------------
# General Variables
# ---------------------------------------------------------------------------------------------------------------------
variable "name" { default = "vault-quick-start" }
variable "ami_owner" { default = "309956199498" } # Base RHEL owner
variable "ami_name" { default = "*RHEL-7.3_HVM_GA-*" } # Base RHEL name
variable "provider" { default = "aws" }
variable "local_ip_url" { default = "http://169.254.169.254/latest/meta-data/local-ipv4" }
# ---------------------------------------------------------------------------------------------------------------------
# Network Variables
# ---------------------------------------------------------------------------------------------------------------------
variable "vpc_cidr" { default = "10.139.0.0/16" }
variable "vpc_cidrs_public" {
type = "list"
default = ["10.139.1.0/24", "10.139.2.0/24", "10.139.3.0/24",]
}
variable "vpc_cidrs_private" {
type = "list"
default = ["10.139.11.0/24", "10.139.12.0/24", "10.139.13.0/24",]
}
variable "nat_count" { default = 1 }
variable "bastion_servers" { default = 1 }
variable "bastion_instance" { default = "t2.micro" }
variable "bastion_image_id" { default = "" }
variable "network_tags" {
type = "map"
default = { }
}
# ---------------------------------------------------------------------------------------------------------------------
# Consul Variables
# ---------------------------------------------------------------------------------------------------------------------
variable "consul_servers" { default = -1 }
variable "consul_instance" { default = "t2.micro" }
variable "consul_version" { default = "1.2.3" }
variable "consul_url" { default = "" }
variable "consul_image_id" { default = "" }
variable "consul_public" {
description = "If true, assign a public IP, open port 22 for public access, & provision into public subnets to provide easier accessibility without a Bastion host - DO NOT DO THIS IN PROD"
default = true
}
variable "consul_server_config_override" { default = "" }
variable "consul_client_config_override" { default = "" }
variable "consul_tags" {
type = "map"
default = { }
}
variable "consul_tags_list" {
type = "list"
default = [ ]
}
# ---------------------------------------------------------------------------------------------------------------------
# Vault Variables
# ---------------------------------------------------------------------------------------------------------------------
variable "vault_servers" { default = -1 }
variable "vault_instance" { default = "t2.micro" }
variable "vault_version" { default = "0.11.3" }
variable "vault_url" { default = "" }
variable "vault_image_id" { default = "" }
variable "vault_public" {
description = "If true, assign a public IP, open port 22 for public access, & provision into public subnets to provide easier accessibility without a Bastion host - DO NOT DO THIS IN PROD"
default = true
}
variable "vault_server_config_override" { default = "" }
variable "vault_tags" {
type = "map"
default = { }
}
variable "vault_tags_list" {
type = "list"
default = [ ]
}