awslabs / mountpoint-s3-csi-driver

Built on Mountpoint for Amazon S3, the Mountpoint CSI driver presents an Amazon S3 bucket as a storage volume accessible by containers in your Kubernetes cluster.
Apache License 2.0
151 stars 18 forks source link

Is there a way to add different aws account s3 bucket to mount in single Kubernetes cluster. #197

Open sudeepnandiqwe opened 1 month ago

sudeepnandiqwe commented 1 month ago

/triage support Is there a way to add different aws account s3 bucket to mount in single Kubernetes cluster E.g. Aws account 1 - s3 bucket 1 Aws account 2 - s3 bucket 1 Aws account 3 - s3 bucket 1 using these CSI driver can we create PV's based on the account and bucket.

passaro commented 1 month ago

Hi @sudeepnandiqwe, have you looked into bucket policies (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-policies.html)? You should be able to configure your buckets to grant cross-account access. If that does not cover your use case, it would be great to hear more about it.

manikandan-harman commented 3 weeks ago

@passaro we are going to have multi-tenant s3 bucket sync. We will not be able to use the cross-account access in this case. is there any way to use different aws account with buckets as @sudeepnandiqwe mentioned?