-
Notifications
You must be signed in to change notification settings - Fork 0
/
ec2.tf
48 lines (42 loc) · 1.44 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
resource "aws_instance" "Varnish" {
ami = "ami-01e7ca2ef94a0ae86"
availability_zone = "us-east-2b"
ebs_optimized = false
instance_type = "t2.micro"
monitoring = false
key_name = "lauris"
subnet_id = "subnet-147c9469"
vpc_security_group_ids = ["sg-0d0bd2d2de2c5edf2"]
associate_public_ip_address = true
private_ip = "172.31.18.170"
source_dest_check = true
root_block_device {
volume_type = "gp2"
volume_size = 8
delete_on_termination = true
}
tags {
"Name" = "Varnish"
}
}
resource "aws_instance" "Magento" {
ami = "ami-01e7ca2ef94a0ae86"
availability_zone = "us-east-2b"
ebs_optimized = false
instance_type = "t2.micro"
monitoring = false
key_name = "lauris"
subnet_id = "subnet-147c9469"
vpc_security_group_ids = ["sg-0d0bd2d2de2c5edf2"]
associate_public_ip_address = true
private_ip = "172.31.22.182"
source_dest_check = true
root_block_device {
volume_type = "gp2"
volume_size = 16
delete_on_termination = true
}
tags {
"Name" = "Magento"
}
}