-
Notifications
You must be signed in to change notification settings - Fork 4
/
resources.tf
48 lines (36 loc) · 1.29 KB
/
resources.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
module "selenium_grid_host" {
source = "terraform-aws-modules/ec2-instance/aws"
version = "1.21.0"
associate_public_ip_address = true
instance_count = 1
ami = "${data.aws_ami.latest-ubuntu.id}"
instance_type = "t2.micro"
key_name = "${var.AWS_PEM_KEY}"
monitoring = true
vpc_security_group_ids = ["${aws_default_security_group.default.id}"]
subnet_id = "${var.AWS_SUBNET}"
name = "Selenium Grid"
tags = {
Terraform = "true"
Environment = "${var.APP_ENV}"
Name = "Selenium Grid"
}
}
module "web_app_host" {
source = "terraform-aws-modules/ec2-instance/aws"
version = "1.21.0"
associate_public_ip_address = true
instance_count = 1
ami = "${data.aws_ami.latest-ubuntu.id}"
instance_type = "t2.micro"
key_name = "${var.AWS_PEM_KEY}"
monitoring = true
vpc_security_group_ids = ["${aws_default_security_group.default.id}"]
subnet_id = "${var.AWS_SUBNET}"
name = "Web App"
tags = {
Terraform = "true"
Environment = "${var.APP_ENV}"
Name = "Web App"
}
}