Skip to content

[Feature] Sync efsCSIController well-known policy with the EFS CSI driver's example policy (S3 Files, DescribeMountTargets) #8906

Open

Description

What feature/behavior/change do you want?

Bring the efsCSIController well-known policy (efsCSIControllerStatements in pkg/cfn/builder/statement.go) in line with the EFS CSI driver's published example policy, docs/iam-policy-example.json. Compared with that file, eksctl's policy is missing:

Action Upstream statement
elasticfilesystem:DescribeMountTargets Describe (Resource: *)
ec2:DescribeAvailabilityZones Describe (Resource: *)
s3files:ListAccessPoints, s3files:ListFileSystems Describe (Resource: *)
s3files:CreateAccessPoint with elasticfilesystem:CreateAccessPoint, same tag condition
s3files:TagResource with elasticfilesystem:TagResource, same tag condition
s3files:DeleteAccessPoint with elasticfilesystem:DeleteAccessPoint, same tag condition

The s3files:* actions were added upstream with S3 Files support (kubernetes-sigs/aws-efs-csi-driver@92c7793, February 2026). The two Describe actions have been in the upstream example for longer.

Why do you want this feature?

A service account created with wellKnownPolicies.efsCSIController: true is denied these calls, so the controller cannot provision S3 Files-backed volumes, and its DescribeMountTargets / DescribeAvailabilityZones lookups fail.

Deliverable

A small PR: add each action to the existing statement for its EFS counterpart (so it inherits the same condition), plus a test asserting the rendered PolicyEFSCSIController document, which iam_test.go does not check today. I have the change ready and will link it here.

Related: #7138 asks about the nodegroup withAddonPolicies.efs policy; this issue only covers the IRSA well-known policy.

Activity

  1. github-actions commented on Oct 20, 2026

    @github-actions
    Contributor

    Hello SivaSaiKrishnaSuryadevara 👋 Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions