-
Notifications
You must be signed in to change notification settings - Fork 1
/
monitoring.tf
104 lines (93 loc) · 3.12 KB
/
monitoring.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
module "ecs_task_state_change" {
source = "./eventbridge"
actions = var.actions
event_detail_type = "ECS Task State Change"
event_name = "ecs-task-state-change"
prefix = var.prefix
default_tags = var.default_tags
}
module "ecs_service_action" {
source = "./eventbridge"
actions = var.actions
event_detail_type = "ECS Service Action"
event_name = "ecs-service-action"
prefix = var.prefix
default_tags = var.default_tags
}
module "aws_health" {
source = "./eventbridge"
actions = var.actions
event_detail_type = "AWS Health Event"
event_name = "aws-health"
prefix = var.prefix
default_tags = var.default_tags
}
module "ec2_instance_state_change" {
source = "./eventbridge"
actions = var.actions
event_detail_type = "EC2 Instance State-change Notification"
event_name = "ec2-instance-state-change"
prefix = var.prefix
default_tags = var.default_tags
}
module "calendar_state_change" {
source = "./eventbridge"
actions = var.actions
event_detail_type = "Calendar State Change"
event_name = "calendar-state-change"
prefix = var.prefix
default_tags = var.default_tags
}
module "maintenance_window_state_change" {
source = "./eventbridge"
actions = var.actions
event_detail_type = "Maintenance Window State-change Notification"
event_name = "maintenance-window-state-change"
prefix = var.prefix
default_tags = var.default_tags
}
module "instance_inventory" {
source = "./eventbridge"
actions = var.actions
event_detail_type = "Inventory Resource State Change"
event_name = "instance_inventory"
prefix = var.prefix
default_tags = var.default_tags
}
module "kinesis" {
count = length(var.kinesis_stream_ids)
source = "./kinesis"
actions = var.actions
prefix = var.prefix
kinesis_stream_id = var.kinesis_stream_ids[count.index]
default_tags = var.default_tags
}
module "elasticsearch" {
count = length(var.elasticsearch_domain_ids)
source = "./elasticsearch"
actions = var.actions
prefix = var.prefix
elasticsearch_domain_id = var.elasticsearch_domain_ids[count.index]
default_tags = var.default_tags
}
module "rds" {
count = length(var.rds_instance_ids)
source = "./rds"
actions = var.actions
prefix = var.prefix
rds_instance_id = var.rds_instance_ids[count.index]
default_tags = var.default_tags
}
module "autoscaling" {
source = "./autoscaling"
actions = var.actions
autoscaling_group_ids = var.autoscaling_group_ids
prefix = var.prefix
default_tags = var.default_tags
}
module "ec2_instances" {
source = "./ec2"
actions = var.actions
ec2_instance_ids = var.ec2_instance_ids
prefix = var.prefix
}