Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion assets/overlays/aws-efs/base/credentials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ spec:
statementEntries:
- effect: Allow
action:
- elasticfilesystem:*
# https://github.com/openshift/aws-efs-csi-driver/blob/master/docs/iam-policy-example.json
- elasticfilesystem:DescribeAccessPoints
- elasticfilesystem:DescribeFileSystems
- elasticfilesystem:DescribeMountTargets
- elasticfilesystem:CreateAccessPoint
- elasticfilesystem:DeleteAccessPoint
- elasticfilesystem:TagResource
Comment thread
dobsonj marked this conversation as resolved.
- ec2:DescribeAvailabilityZones # for one-zone volumes
resource: "*"

@rhrmo rhrmo Jul 23, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that the policy example restricts the resources of create/delete access point and tag resource with

"Condition": {
        "StringLike": {
          "aws:RequestTag/efs.csi.aws.com/cluster": "true"
        }

should we also use this for these actions?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see it was also coderabbits comment and it is resolved, I wonder, can users set their own resource tags and that is why it would now work? Or what is the reason? 🤔

# STS fields will be set by the operator
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ spec:
kind: AWSProviderSpec
statementEntries:
- action:
- elasticfilesystem:*
- elasticfilesystem:DescribeAccessPoints
- elasticfilesystem:DescribeFileSystems
- elasticfilesystem:DescribeMountTargets
- elasticfilesystem:CreateAccessPoint
- elasticfilesystem:DeleteAccessPoint
- elasticfilesystem:TagResource
- ec2:DescribeAvailabilityZones
effect: Allow
resource: '*'
Expand Down