Skip to content

Commit

Permalink
Fix ebs_csi to reflect the changes in the upstream
Browse files Browse the repository at this point in the history
Instead of replacing the condition we add new to support (for a while)
users of older versions of the EBS driver.
  • Loading branch information
prysmakou-sa committed Jan 19, 2023
1 parent aa7ddba commit 53cd87c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/iam-role-for-service-accounts-eks/policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,17 @@ data "aws_iam_policy_document" "ebs_csi" {
}
}

statement {
actions = ["ec2:DeleteVolume"]
resources = ["*"]

condition {
test = "StringLike"
variable = "ec2:ResourceTag/kubernetes.io/created-for/pvc/name"
values = ["*"]
}
}

statement {
actions = ["ec2:DeleteSnapshot"]
resources = ["*"]
Expand Down

0 comments on commit 53cd87c

Please sign in to comment.