We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e7184c commit cf4aafdCopy full SHA for cf4aafd
main.tf
@@ -21,6 +21,8 @@ resource "aws_alb" "main" {
21
22
data "aws_iam_policy_document" "bucket_policy" {
23
statement {
24
+ sid = "AllowToPutLoadBalancerLogsToS3Bucket"
25
+
26
actions = [
27
"s3:PutObject",
28
]
@@ -31,7 +33,7 @@ data "aws_iam_policy_document" "bucket_policy" {
31
33
32
34
principals {
35
type = "AWS"
- identifiers = ["${data.aws_elb_service_account.main.id}"]
36
+ identifiers = ["arn:aws:iam::${data.aws_elb_service_account.main.id}:root"]
37
}
38
39
0 commit comments