Skip to content

Commit 85f71d9

Browse files
authored
fix: Use dynamic partition value (#23)
1 parent 9c294ba commit 85f71d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aws_ebs_csi.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ data "aws_iam_policy_document" "ebs_csi" {
5757

5858
statement {
5959
actions = ["ec2:CreateVolume"]
60-
resources = ["arn:aws:ec2:*:*:volume/*"]
60+
resources = ["arn:${local.partition}:ec2:*:*:volume/*"]
6161

6262
condition {
6363
test = "StringLike"
@@ -68,7 +68,7 @@ data "aws_iam_policy_document" "ebs_csi" {
6868

6969
statement {
7070
actions = ["ec2:CreateVolume"]
71-
resources = ["arn:aws:ec2:*:*:volume/*"]
71+
resources = ["arn:${local.partition}:ec2:*:*:volume/*"]
7272

7373
condition {
7474
test = "StringLike"
@@ -79,7 +79,7 @@ data "aws_iam_policy_document" "ebs_csi" {
7979

8080
statement {
8181
actions = ["ec2:CreateVolume"]
82-
resources = ["arn:aws:ec2:*:*:snapshot/*"]
82+
resources = ["arn:${local.partition}:ec2:*:*:snapshot/*"]
8383
}
8484

8585
statement {

0 commit comments

Comments
 (0)