Skip to content

Commit

Permalink
fix: Update iam policy document (DNXLabs#7)
Browse files Browse the repository at this point in the history
We have found that when using the permissions currently in the
efs_csi_driver that the pods are unable to mount the EFS filesystem.
Adding the permissions listed in this PR allowed the access to function
successfully.

A sample error message was
```
Unauthorized to perform operation DescribeAvailabilityZones.
```
  • Loading branch information
ericlake authored Nov 11, 2021
1 parent 867f44f commit b23f55f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ data "aws_iam_policy_document" "efs_csi_driver" {
statement {
actions = [
"elasticfilesystem:DescribeAccessPoints",
"elasticfilesystem:DescribeFileSystems"
"elasticfilesystem:DescribeFileSystems",
"elasticfilesystem:DescribeMountTargets",
"ec2:DescribeAvailabilityZones"
]
resources = ["*"]
effect = "Allow"
Expand Down

0 comments on commit b23f55f

Please sign in to comment.