-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlb_target_groups.tf
73 lines (57 loc) · 1.46 KB
/
lb_target_groups.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
// ECS service will register themselves into these target groups
resource "aws_lb_target_group" "ecs_identification_svc_tg" {
name = "SOAT-TC-ALB-IdentificationSVC-TG"
port = 80
protocol = "HTTP"
target_type = "ip"
vpc_id = aws_vpc.main.id
health_check {
interval = 10
path = "/identification/actuator/health"
}
tags = {
Name : "SOAT-TC ALB Identification Service Target Group"
}
}
resource "aws_lb_target_group" "ecs_order_svc_tg" {
name = "SOAT-TC-ALB-OrderSVC-TG"
port = 80
protocol = "HTTP"
target_type = "ip"
vpc_id = aws_vpc.main.id
health_check {
interval = 10
path = "/order/actuator/health"
}
tags = {
Name : "SOAT-TC ALB Order Service Target Group"
}
}
resource "aws_lb_target_group" "ecs_payment_svc_tg" {
name = "SOAT-TC-ALB-PaymentSVC-TG"
port = 80
protocol = "HTTP"
target_type = "ip"
vpc_id = aws_vpc.main.id
health_check {
interval = 10
path = "/payment/actuator/health"
}
tags = {
Name : "SOAT-TC ALB Payment Service Target Group"
}
}
resource "aws_lb_target_group" "ecs_production_svc_tg" {
name = "SOAT-TC-ALB-ProductionSVC-TG"
port = 80
protocol = "HTTP"
target_type = "ip"
vpc_id = aws_vpc.main.id
health_check {
interval = 10
path = "/production/actuator/health"
}
tags = {
Name : "SOAT-TC ALB Production Service Target Group"
}
}