Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 1, 2024
1 parent 78a3b15 commit f91364b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions s3-access-logs/policy_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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.main.id),
format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, data.aws_elb_service_account.elb_account_id.id),
]
}
}
Expand All @@ -41,7 +41,7 @@ data "aws_iam_policy_document" "logs_s3" {
test = "ArnLike"
variable = "aws:SourceArn"
# values = [format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, local.account_id)]
values = [format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, data.aws_elb_service_account.main.id)]
values = [format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, data.aws_elb_service_account.elb_account_id.id)]
}
}
statement {
Expand All @@ -62,7 +62,7 @@ data "aws_iam_policy_document" "logs_s3" {
test = "ArnLike"
variable = "aws:SourceArn"
# values = [format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, local.account_id)]
values = [format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, data.aws_elb_service_account.main.id)]
values = [format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, data.aws_elb_service_account.elb_account_id.id)]
}
}

Expand All @@ -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.main.id),
format("arn:%v:logs:%v:%v:*", data.aws_arn.current.partition, local.logs_region, data.aws_elb_service_account.elb_account_id.id),
]
}
}
Expand Down

0 comments on commit f91364b

Please sign in to comment.