diff --git a/s3-access-logs/policy_data.tf b/s3-access-logs/policy_data.tf index 0f5e2be..9523260 100644 --- a/s3-access-logs/policy_data.tf +++ b/s3-access-logs/policy_data.tf @@ -14,7 +14,7 @@ data "aws_iam_policy_document" "logs_s3" { type = "AWS" identifiers = [ format("arn:%v:iam::%v:root", data.aws_arn.current.partition, local.account_id), - format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, data.aws_elb_service_account.elb_account_id.id), + data.aws_elb_service_account.elb_account_id.arn, ] } } @@ -78,7 +78,7 @@ data "aws_iam_policy_document" "logs_s3" { type = "AWS" identifiers = [ format("arn:%v:iam::%v:root", data.aws_arn.current.partition, local.account_id), - format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, data.aws_elb_service_account.elb_account_id.id), + data.aws_elb_service_account.elb_account_id.arn, ] } }