Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with S3 bucket access #12

Merged
merged 2 commits into from
Feb 12, 2024
Merged

Conversation

fabiorauber
Copy link
Contributor

I couldn't mount the S3 bucket with S3 CSI Driver, and the following error was recorded:

GRPC error: rpc error: code = Internal desc = Could not mount "s3-bucket" at "/var/lib/kubelet/pods/322559df-ee71-4dc2-9b6f-c981a140ff2f/volumes/kubernetes.io~csi/s3-bucket-s3-pv/mount": Mount failed: Failed to start service output: Error: Failed to create S3 client Caused by: 0: initial ListObjectsV2 failed for bucket s3-bucket in region us-east-1 1: Client error 2: Forbidden: Access Denied Error: Failed to create mount process

Turned out there was a slash trailing the bucket resource specification in the IAM Policy.

Copy link
Owner

@Z4ck404 Z4ck404 left a comment

Choose a reason for hiding this comment

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

Hey @fabiorauber,
Good catch, I remember I saw this error when I was testing but didn't verify that the fix was pushed.
Can you also update the version file to trigger a build ?
otherwise LGTM

@Z4ck404 Z4ck404 merged commit 962dbea into Z4ck404:main Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants