-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
38 lines (31 loc) · 948 Bytes
/
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
/* Name of the ecs cluster */
variable "name" {
type = "string"
}
/*
* List of instances defined by its type.
* The default value will create 2x t2.small instances + 1x t2.medium instance
*/
variable "instances" {
type = "list"
default = ["t2.medium","t2.small", "t2.small"]
}
/* keypair name for the cluster node's instances */
variable "instance_keypair_name" {
type = "string"
}
/* List of vpc subnets to spare the different nodes of the cluster */
variable "vpc_subnet_ids" {
type = "list"
}
/* Environment name. Used to name resources, so that you can use this same module for several environments. All resources will be named as {name}-{environment} */
variable "environment" {
type = "string"
}
/* List of subnets that can access (all traffic) the ecs cluster instances.
* Intended for VPN/HQ/Devops networks to troubleshoot/testing the cluster directly
*/
variable "allowed_subnets" {
type = "list"
default = []
}