Skip to content

Commit

Permalink
tests/provider: Fix hardcoded ARN (Route53)
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Oct 20, 2020
1 parent e81b095 commit 23de860
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aws/resource_aws_route53_query_log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,19 @@ resource "aws_cloudwatch_log_group" "test" {
retention_in_days = 1
}
data "aws_partition" "current" {}
data "aws_iam_policy_document" "test" {
statement {
actions = [
"logs:CreateLogStream",
"logs:PutLogEvents",
]
resources = ["arn:aws:logs:*:*:log-group:/aws/route53/*"]
resources = ["arn:${data.aws_partition.current.partition}:logs:*:*:log-group:/aws/route53/*"]
principals {
identifiers = ["route53.amazonaws.com"]
identifiers = ["route53.${data.aws_partition.current.dns_suffix}"]
type = "Service"
}
}
Expand Down

0 comments on commit 23de860

Please sign in to comment.