Skip to content

Commit f6713bd

Browse files
committed
chose: fix indentation
1 parent 946c88d commit f6713bd

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

cloudwatch.tf

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,33 @@ data "aws_iam_policy_document" "main" {
2222
effect = "Allow"
2323

2424
principals {
25-
identifiers = ["delivery.logs.amazonaws.com"]
26-
type = "Service"
25+
identifiers = [
26+
"delivery.logs.amazonaws.com"
27+
]
28+
type = "Service"
2729
}
2830

29-
actions = ["logs:CreateLogStream", "logs:PutLogEvents"]
30-
resources = ["${module.cloudwatch_log_group.arn}:*"]
31+
actions = [
32+
"logs:CreateLogStream",
33+
"logs:PutLogEvents"
34+
]
35+
resources = [
36+
"${module.cloudwatch_log_group.arn}:*"
37+
]
3138

3239
condition {
33-
test = "ArnLike"
34-
values = ["arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:*"]
40+
test = "ArnLike"
41+
values = [
42+
"arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:*"
43+
]
3544
variable = "aws:SourceArn"
3645
}
3746

3847
condition {
39-
test = "StringEquals"
40-
values = [tostring(data.aws_caller_identity.current.account_id)]
48+
test = "StringEquals"
49+
values = [
50+
tostring(data.aws_caller_identity.current.account_id)
51+
]
4152
variable = "aws:SourceAccount"
4253
}
4354
}

0 commit comments

Comments
 (0)