Skip to content

Commit

Permalink
fix: Update ExternalDNS IRSA policy to work properly with multiple Ro…
Browse files Browse the repository at this point in the history
…ute53 hosted zones (#1474)
  • Loading branch information
Artem Donskikh committed Mar 15, 2023
1 parent 257e021 commit 5ac283c
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 5ac283c

Please sign in to comment.