/
variables.tf
46 lines (40 loc) · 1.16 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
variable "standalone_ami_name" {
type = string
default = "isuconXX-qualify"
description = "AMI Name of stand alone instance"
}
variable "standalone_ami_owner" {
type = string
default = "839726181030" # owner of https://github.com/matsuu/aws-isucon
description = "Owner of the stand alone AMI"
}
variable "access_cidr_blocks" {
type = string
default = "0.0.0.0/0" # "0.0.0.0/0,255.255.255.255/32" のようにカンマ区切りで複数指定可
description = "cidr for access"
}
variable "vpc_net_mask" {
type = string
default = "10.1.0.0"
description = "VPC network subnet mask"
}
variable "ec2_members" {
type = map
default = { # デフォルトではベンチマーカー役も含んだ4台のEC2が同じAMIで構築される
"0" = "worker-01"
"1" = "worker-02"
"2" = "worker-03"
"3" = "benchmark-instance"
}
description = "EC2 instances for isucon practice"
}
variable "ec2_instance_type" {
type = string
default = "t2.micro"
description = "EC2 instance type"
}
variable "ec2_volume_size" {
type = number
default = 20
description = "EC2 EBS volume size"
}