-
Notifications
You must be signed in to change notification settings - Fork 2
/
ec2.tf
108 lines (93 loc) · 3.05 KB
/
ec2.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
#EC2 Instance for Hunterist Production
resource "aws_instance" "hunterist-prod-front01" {
ami = "ami-46ee3127"
availability_zone = "ap-northeast-1a"
instance_type = "m3.medium"
source_dest_check = false
ebs_optimized = false
key_name = "${aws_key_pair.hunterist-prod-front01.key_name}"
subnet_id = "${aws_subnet.hunterist-prod-front01.id}"
disable_api_termination = false
vpc_security_group_ids = [
"${aws_security_group.hunterist-prod-front.id}",
]
root_block_device {
volume_type = "gp2"
volume_size = "20"
delete_on_termination = true
}
tags {
Name = "Hunterist-Prod-Front01"
Project = "Hunterist"
Environment = "Production"
}
}
resource "aws_instance" "hunterist-prod-front02" {
ami = "ami-46ee3127"
availability_zone = "ap-northeast-1c"
instance_type = "m3.medium"
source_dest_check = false
ebs_optimized = false
key_name = "${aws_key_pair.hunterist-prod-front02.key_name}"
subnet_id = "${aws_subnet.hunterist-prod-front02.id}"
disable_api_termination = false
vpc_security_group_ids = [
"${aws_security_group.hunterist-prod-front.id}",
]
root_block_device {
volume_type = "gp2"
volume_size = "20"
delete_on_termination = true
}
tags {
Name = "Hunterist-Prod-Front02"
Project = "Hunterist"
Environment = "Production"
}
}
resource "aws_instance" "hunterist-prod-pipeline01" {
ami = "ami-2df02f4c"
availability_zone = "ap-northeast-1a"
instance_type = "c4.xlarge"
source_dest_check = false
ebs_optimized = true
key_name = "${aws_key_pair.hunterist-prod-pipeline01.key_name}"
subnet_id = "${aws_subnet.hunterist-prod-pipeline01.id}"
disable_api_termination = false
vpc_security_group_ids = [
"${aws_security_group.hunterist-prod-pipeline.id}",
]
root_block_device {
volume_type = "gp2"
volume_size = "100"
delete_on_termination = true
}
tags {
Name = "Hunterist-Prod-Pipeline01"
Project = "Hunterist"
Environment = "Production"
}
}
resource "aws_instance" "hunterist-prod-pipeline02" {
ami = "ami-2df02f4c"
availability_zone = "ap-northeast-1c"
instance_type = "c4.xlarge"
source_dest_check = false
ebs_optimized = true
key_name = "${aws_key_pair.hunterist-prod-pipeline02.key_name}"
subnet_id = "${aws_subnet.hunterist-prod-pipeline02.id}"
disable_api_termination = false
vpc_security_group_ids = [
"${aws_security_group.hunterist-prod-pipeline.id}",
]
root_block_device {
volume_type = "gp2"
volume_size = "100"
delete_on_termination = true
}
tags {
Name = "Hunterist-Prod-Pipeline02"
Project = "Hunterist"
Environment = "Production"
}
}