forked from hashicorp/vault-guides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
66 lines (54 loc) · 2.54 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
# ---------------------------------------------------------------------------------------------------------------------
# General Variables
# ---------------------------------------------------------------------------------------------------------------------
variable "name" { default = "vault-dev" }
variable "ami_owner" { default = "309956199498" } # Base RHEL owner
variable "ami_name" { default = "*RHEL-7.3_HVM_GA-*" } # Base RHEL name
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",]
}
variable "vpc_cidrs_private" {
type = "list"
default = ["10.139.11.0/24", "10.139.12.0/24",]
}
variable "nat_count" { default = 1 }
variable "bastion_servers" { default = 0 }
variable "bastion_image_id" { default = "" }
variable "network_tags" {
type = "map"
default = { }
}
# ---------------------------------------------------------------------------------------------------------------------
# Consul Variables
# ---------------------------------------------------------------------------------------------------------------------
variable "consul_install" { default = false }
variable "consul_version" { default = "1.2.3" }
variable "consul_url" { default = "" }
variable "consul_config_override" { 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 = "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_config_override" { default = "" }
variable "vault_tags" {
type = "map"
default = { }
}
variable "vault_tags_list" {
type = "list"
default = [ ]
}