File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
infrastructure/terraform/components/api Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -44,5 +44,5 @@ resource "aws_s3_bucket_logging" "truststore" {
4444 bucket = aws_s3_bucket. truststore . id
4545
4646 target_bucket = aws_s3_bucket. logging . bucket
47- target_prefix = " truststore/ ${ aws_s3_bucket . truststore . bucket } /"
47+ target_prefix = " ${ aws_s3_bucket . truststore . bucket } /"
4848}
Original file line number Diff line number Diff line change @@ -25,4 +25,20 @@ data "aws_iam_policy_document" "logging" {
2525 ]
2626 }
2727 }
28+
29+ statement {
30+ sid = " s3-log-delivery"
31+ effect = " Allow"
32+
33+ principals {
34+ type = " Service"
35+ identifiers = [" logging.s3.amazonaws.com" ]
36+ }
37+
38+ actions = [" s3:PutObject" ]
39+
40+ resources = [
41+ " ${ aws_s3_bucket . logging . arn } /*" ,
42+ ]
43+ }
2844}
You can’t perform that action at this time.
0 commit comments