Skip to content

Commit

Permalink
fix: Update ExternalDNS policy to support multiple Route 53 zones (#…
Browse files Browse the repository at this point in the history
…1496)

Co-authored-by: Artem Donskikh <artem.donskikh@dataart.com>
  • Loading branch information
adonskikh and Artem Donskikh committed Mar 20, 2023
1 parent dbd9ca3 commit 09ed9f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/kubernetes-addons/external-dns/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ data "aws_iam_policy_document" "external_dns_iam_policy_document" {
[data.aws_route53_zone.selected.arn],
var.route53_zone_arns
))
actions = [
"route53:ChangeResourceRecordSets",
"route53:ListResourceRecordSets",
]
actions = ["route53:ChangeResourceRecordSets"]
}

statement {
effect = "Allow"
resources = ["*"]
actions = ["route53:ListHostedZones"]
actions = [
"route53:ListHostedZones",
"route53:ListResourceRecordSets",
]
}
}

0 comments on commit 09ed9f4

Please sign in to comment.