Access to s3 bucket #2853
-
Describe the bugI am attempting to deploy grafana mimir on an amazon EKS cluster with s3 as it's backend storage. It have the necessary buckets created, EKS cluster running, IRSA enabled on the cluster, IAM roles deployed, and service account setup with the role annotation attached. When I start up mimir using helm I am getting this error from any pod attempting to use the s3 storage
Hoping into the pod shows that the pod is showing the correct aws role but the software is still unable to connect even though the permissions to the bucket are currently set to s3:*. Any assistance with this would be appreciated Expected behaviorI expect the pods to be able to connect to their object storage correctly. Environment
Additional ContextHere is a snippet of my configuration
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
A quick double check, please: if you install the
The error log both mentions the |
Beta Was this translation helpful? Give feedback.
-
getting below error while configuring azure blob for mimir. ts=2023-06-13T07:31:22.543051476Z caller=main.go:213 level=info msg="Starting application" version="(version=2.8.0, branch=HEAD, revision=f917e08)" |
Beta Was this translation helpful? Give feedback.
-
I had a similar error when I use instance IAM role and it was working fine with access keys. This was due to the limit on number of hops for ec2 instance using IMDSv2. By default, HttpPutResponseHopLimit is 1 and I had to increase it to 3 to make it work. |
Beta Was this translation helpful? Give feedback.
A quick double check, please: if you install the
aws
CLI client in the same container where Mimir is running, can theaws
tool access the S3 bucket?The error log both mentions the
blocks_storage
(which you configured) andruler_storage
. Have you also configured theruler_storage
? (not the root cause of your issue because it fails the check onblocks_storage
too, butruler_storage
should be configured too if you want to run the ruler)