Skip to content

Commit

Permalink
fix: Update karpenter zonal-shift policy (#3693)
Browse files Browse the repository at this point in the history
fix: update karpenter zonal-shift policy
  • Loading branch information
Antoine Labarussias authored and GitHub committed May 6, 2026
1 parent 2006a8a commit 5ba1ed3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/karpenter/policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,13 @@ data "aws_iam_policy_document" "controller" {

statement {
sid = "AllowZonalShiftReadActions"
resources = ["arn:${local.partition}:eks:${local.region}:${local.account_id}:cluster/${var.cluster_name}"]
resources = ["*"]
actions = ["arc-zonal-shift:GetManagedResource"]
condition {
test = "StringEquals"
variable = "arc-zonal-shift:ResourceIdentifier"
values = ["arn:${local.partition}:eks:${local.region}:${local.account_id}:cluster/${var.cluster_name}"]
}
}

dynamic "statement" {
Expand Down

0 comments on commit 5ba1ed3

Please sign in to comment.