This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvariables.tf
139 lines (116 loc) · 3.57 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
variable "aws_region" {
description = "The Amazon region: currently North Virginia [us-east-1]."
type = string
}
variable "environment" {
description = "Name of the environment; will be prefixed to all resources."
type = string
}
variable "key_name" {
description = "The AWS keyname, used to create instances."
type = string
}
variable "instance_type" {
description = "The instance type used in the cluster."
type = string
}
variable "vpc_id" {
description = "The VPC to launch the instance in (e.g. vpc-66ecaa02)."
type = string
}
variable "vpc_cidr" {
description = "The CIDR block of the VPC (e.g. 10.64.48.0/23)."
type = string
}
variable "additional_cidr_blocks" {
description = "Additional CIDR blocks that will be whitelisted within the VPC next to the VPC's CIDR block. Default is an empty list."
type = list(string)
default = []
}
variable "additional_ingress" {
description = "Additional VPC ingress. Default is an empty list."
type = list(object({
protocol = string
from_port = number
to_port = number
cidr_blocks = list(string)
}))
default = []
}
variable "min_instance_count" {
description = "The minimal instance count in the cluster."
type = number
default = 1
}
variable "max_instance_count" {
description = "The maximum instance count in the cluster."
type = number
default = 1
}
variable "desired_instance_count" {
description = "The desired instance count in the cluster."
type = number
default = 1
}
variable "dynamic_scaling" {
description = "Enable/disable dynamic scaling of the auto scaling group."
type = bool
default = false
}
variable "enable_session_manager" {
description = "Enable/disable aws session manager support (i.e remote access to instance in VPC using secure tunnel)."
type = bool
default = false
}
variable "dynamic_scaling_adjustment" {
description = "The adjustment in number of instances for dynamic scaling."
type = number
default = 1
}
variable "subnet_ids" {
description = "List of subnets ids on which the instances will be launched."
type = string
}
// http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI_launch_latest.html
variable "ecs_optimized_type" {
description = "Possible values"
default = "amzn2"
}
variable "ecs_ami_filter" {
description = "The filter used to select the AMI for the ECS cluster. By default the the pattern `amzn2-ami-ecs-hvm-2.0.????????-x86_64-ebs` for the name is used."
type = list(map(string))
default = [
{
name = "name"
values = "amzn2-ami-ecs-hvm-2.0.????????-x86_64-ebs"
},
]
}
variable "ecs_ami_latest" {
description = "Indicator to use the latest available in the the list of the AMI's for the ECS cluster."
type = bool
default = true
}
variable "ecs_ami_include_deprecated" {
description = "If true, all deprecated AMIs are included in the response. If false, no deprecated AMIs are included in the response."
type = bool
default = false
}
variable "ecs_ami_owners" {
description = "A list of owners used to select the AMI for the ECS cluster."
type = list(string)
default = ["amazon"]
}
variable "project" {
description = "Project identifier"
type = string
}
variable "user_data" {
description = "The user-data for the ec2 instances"
type = string
}
variable "tags" {
type = map(string)
description = "Map of tags to apply on the resources"
default = {}
}