Skip to content

Commit

Permalink
fix: Use dynamic partition value (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-perge authored Oct 22, 2024
1 parent 9c294ba commit 85f71d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws_ebs_csi.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ data "aws_iam_policy_document" "ebs_csi" {

statement {
actions = ["ec2:CreateVolume"]
resources = ["arn:aws:ec2:*:*:volume/*"]
resources = ["arn:${local.partition}:ec2:*:*:volume/*"]

condition {
test = "StringLike"
Expand All @@ -68,7 +68,7 @@ data "aws_iam_policy_document" "ebs_csi" {

statement {
actions = ["ec2:CreateVolume"]
resources = ["arn:aws:ec2:*:*:volume/*"]
resources = ["arn:${local.partition}:ec2:*:*:volume/*"]

condition {
test = "StringLike"
Expand All @@ -79,7 +79,7 @@ data "aws_iam_policy_document" "ebs_csi" {

statement {
actions = ["ec2:CreateVolume"]
resources = ["arn:aws:ec2:*:*:snapshot/*"]
resources = ["arn:${local.partition}:ec2:*:*:snapshot/*"]
}

statement {
Expand Down

0 comments on commit 85f71d9

Please sign in to comment.