File tree Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,33 @@ data "aws_iam_policy_document" "main" {
22
22
effect = " Allow"
23
23
24
24
principals {
25
- identifiers = [" delivery.logs.amazonaws.com" ]
26
- type = " Service"
25
+ identifiers = [
26
+ " delivery.logs.amazonaws.com"
27
+ ]
28
+ type = " Service"
27
29
}
28
30
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
+ ]
31
38
32
39
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
+ ]
35
44
variable = " aws:SourceArn"
36
45
}
37
46
38
47
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
+ ]
41
52
variable = " aws:SourceAccount"
42
53
}
43
54
}
You can’t perform that action at this time.
0 commit comments