-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
101 lines (82 loc) · 2.1 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
90
91
92
93
94
95
96
97
98
99
100
101
# General Settings
variable "aws_account" {
description = "The AWS Account to use"
}
variable "environment" {
description = "Desired environment to use in custom ids and names EG: \"staging\""
default = "dev"
}
variable "name" {
description = "The cluster name, e.g cdn"
}
variable "ssh_key_name" {
description = "The aws ssh key name."
}
variable "region" {
description = "The AWS region to create resources in."
default = "eu-central-1"
}
variable "az_count" {
description = "Number of AZs to cover in a given AWS region"
default = "2"
}
# Swarm config
variable "image_id" {
default = {
eu-central-1 = "ami-2acd1845"
us-east-2 = "ami-fcc19b99"
}
}
variable "instance_type" {
default = "t2.micro"
}
variable "instance_ebs_optimized" {
description = "When set to true the instance will be launched with EBS optimized turned on"
default = false
}
variable "autoscale_min" {
default = "2"
description = "Minimum autoscale (number of EC2)"
}
variable "autoscale_max" {
default = "10"
description = "Maximum autoscale (number of EC2)"
}
variable "autoscale_desired" {
default = "2"
description = "Desired autoscale (number of EC2)"
}
variable "root_volume_size" {
description = "Root volume size in GB"
default = 20
}
variable "docker_volume_size" {
description = "Attached EBS volume size in GB"
default = 30
}
# Network
variable "vpc_id" {
description = "ID of the VPC to use"
}
variable "external_subnets" {
description = "External subnets of the VPC"
type = "list"
}
variable "associate_public_ip_address" {
description = "Should created instances be publicly accessible (if the SG allows)"
default = false
}
variable "elb_id" {
description = "External ELB to use to balance the cluster"
}
# Network Security
variable "ingress_allow_security_groups" {
description = "A list of security group IDs to allow traffic from"
type = "list"
default = []
}
variable "ingress_allow_cidr_blocks" {
description = "A list of CIDR blocks to allow traffic from"
type = "list"
default = []
}