-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvariables.tf
104 lines (82 loc) · 2.07 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
// Required
variable "vpc" {
description = "VPC id for ECS cluster"
}
variable "subnets" {
type = "list"
description = "List of subnet ids for ECS cluster, please choose 2 subnets"
}
variable "key_name" {
description = "Name of key pair for SSH login to ECS cluster instances"
}
variable "ami" {
description = "ECS cluster instance AMI id, default is Amazon ECS-optimized AMI in us-east-1"
default = "ami-eca289fb"
}
// Customize for container options
variable "app_name" {
description = "Your application name"
default = "demo-app"
}
variable "https" {
description = "Listen over https"
default = false
}
variable "app_certificate_arn" {
description = "SSL cert ARN"
default = ""
}
variable "app_ssl_policy" {
description = "SSL Policy"
default = "ELBSecurityPolicy-2015-05"
}
variable "image" {
description = "Your docker image name, default it ECS PHP Simple App"
default = "wata727/ecs-demo-php-simple-app:latest"
}
variable "container_port" {
description = "Port number exposed by container"
default = 80
}
variable "service_count" {
description = "Number of containers"
default = 3
}
variable "cpu_unit" {
description = "Number of cpu units for container"
default = 128
}
variable "memory" {
description = "Number of memory for container"
default = 128
}
// Customize for spot fleet options
variable "spot_prices" {
description = "Bid amount to spot fleet"
type = "list"
default = ["0.03", "0.03"]
}
variable "strategy" {
description = "Instance placement strategy name"
default = "diversified"
}
variable "instance_count" {
description = "Number of instances"
default = 3
}
variable "instance_type" {
description = "Instance type launched by spot fleet"
default = "m3.medium"
}
variable "volume_size" {
description = "Root volume size"
default = 16
}
variable "app_port" {
description = "Port number of application"
default = 80
}
variable "valid_until" {
description = "limit of spot fleet"
default = "2020-12-15T00:00:00Z"
}