Skip to content

Commit

Permalink
fix: Reflect the changes in the ebs_csi driver (#326)
Browse files Browse the repository at this point in the history
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
  • Loading branch information
prysmakou-sa and bryantbiggs authored Jan 19, 2023
1 parent 6f860ff commit cadfe47
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 cadfe47

Please sign in to comment.