-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
68 lines (55 loc) · 1.65 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
variable "ec2_key_name" {
description = "ssh key pair"
}
variable "bastion_cidr_blocks" {
description = "List of cidr IP's that can access the public bastion IP"
type = "list"
}
variable "vpc_name" {
description = "name for the vpc and prefix for other resources"
}
# for demo purposes the load balancer is open on :80
variable "alb_cidr_blocks" {
description = "List of cidr IP's that can access the alb"
type = "list"
default = ["0.0.0.0/0"]
}
variable "asg_size" {
description = "number of instances in asg"
default = "2"
}
# this is the official aws ami for ecs:
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
variable "ami_id" {
default = "ami-00129b193dc81bc31"
}
variable "app_instance_size" {
default = "t2.small"
}
variable "azs" {
description = "List of 3 AWS AZ's"
type = "list"
default = ["us-east-1a", "us-east-1b", "us-east-1c"]
}
variable "cidr" {
description = "VPC cidr block"
default = "10.0.0.0/20"
}
variable "database_subnets" {
description = "Allocation of 3 subnets from your CIDR block for databases"
type = "list"
default = ["10.0.7.0/24", "10.0.8.0/24", "10.0.9.0/24"]
}
variable "private_subnets" {
description = "Allocation of 3 subnets from your CIDR block for the cluster instances"
type = "list"
default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
variable "public_subnets" {
description = "Allocation of 3 subnets from your CIDR block for the bastion and LB"
type = "list"
default = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"]
}
variable "region" {
default = "us-east-1"
}