Help improve this page
Want to contribute to this user guide? Scroll to the bottom of this page and select Edit this page on GitHub. Your contributions will help make our user guide better for everyone.
Mountpoint for Amazon S3 CSI Driver
The Mountpoint for Amazon S3 CSI Driver Amazon EKS add-on is a Kubernetes Container Storage Interface (CSI) plugin that provides Amazon S3 storage for your cluster.
The Amazon EKS add-on name is aws-mountpoint-s3-csi-driver
.
Required IAM permissions
This add-on uses the IAM roles for
service accounts capability of Amazon EKS. The IAM role that is
created will require a policy that gives access to S3. Follow the Mountpoint IAM permissions
recommendations
You can create an IAM role and attach your policy to it with the
following commands. Replace my-cluster
with
the name of your cluster,
with the correct AWS Region code,
region-code
AmazonEKS_S3_CSI_DriverRole
with the name
for your role, and
AmazonEKS_S3_CSI_DriverRole_ARN
with the
role ARN. These commands require that you have eksctl
CLUSTER_NAME=
my-cluster
REGION=ROLE_NAME=
region-code
AmazonEKS_S3_CSI_DriverRole
POLICY_ARN=AmazonEKS_S3_CSI_DriverRole_ARN
eksctl create iamserviceaccount \ --name s3-csi-driver-sa \ --namespace kube-system \ --cluster $CLUSTER_NAME \ --attach-policy-arn $POLICY_ARN \ --approve \ --role-name $ROLE_NAME \ --region $REGION \ --role-only
Additional information
To learn more about the add-on, see Access Amazon S3 objects with Mountpoint for Amazon S3 CSI driver.