-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathcloudwatch-logs.tf
110 lines (101 loc) · 3.31 KB
/
cloudwatch-logs.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
109
110
resource "aws_cloudwatch_log_group" "client" {
name_prefix = "${local.project_tag}-client-"
}
resource "aws_cloudwatch_log_group" "client_sidecars" {
name_prefix = "${local.project_tag}-client-sidecars-"
}
resource "aws_cloudwatch_log_group" "fruits" {
name_prefix = "${local.project_tag}-fruits-"
}
resource "aws_cloudwatch_log_group" "fruits_sidecars" {
name_prefix = "${local.project_tag}-fruits-sidecars-"
}
resource "aws_cloudwatch_log_group" "fruits_v2" {
name_prefix = "${local.project_tag}-fruits-v2-"
}
resource "aws_cloudwatch_log_group" "fruits_v2_sidecars" {
name_prefix = "${local.project_tag}-fruits-v2-sidecars-"
}
resource "aws_cloudwatch_log_group" "vegetables" {
name_prefix = "${local.project_tag}-vegetables-"
}
resource "aws_cloudwatch_log_group" "vegetables_sidecars" {
name_prefix = "${local.project_tag}-vegetables-sidecars-"
}
resource "aws_cloudwatch_log_group" "acl" {
name_prefix = "${local.project_tag}-acl-"
}
locals {
acl_logs_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.acl.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-acl-"
}
}
client_logs_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.client.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-client-"
}
}
client_sidecars_log_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.client_sidecars.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-client-sidecars-"
}
}
fruits_log_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.fruits.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-fruits-"
}
}
fruits_sidecars_log_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.fruits_sidecars.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-fruits-sidecars-"
}
}
fruits_v2_log_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.fruits_v2.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-fruits-v2-"
}
}
fruits_v2_sidecars_log_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.fruits_v2_sidecars.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-fruits-v2-sidecars-"
}
}
vegetables_log_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.vegetables.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-vegetables-"
}
}
vegetables_sidecars_log_configuration = {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.vegetables_sidecars.name
awslogs-region = var.region
awslogs-stream-prefix = "${local.project_tag}-vegetables-sidecars-"
}
}
}