Getting an intermittent access denied error when running get_object #3091
Labels
guidance
Question that needs advice or information.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
When trying to retrieve an object from an s3 bucket using
get_object
I'm intermittently getting an access denied error from AWS. The only info I'm getting back from AWS is#<Aws::S3::Errors::AccessDenied: Access Denied>
which isn't really all that helpful. I'm assuming it's not a credentials problem since I'm also writing to s3 in this process with no issues, and also becauseget_object
works sometimes, but definitely not every time.This process is happening on a Sidekiq worker on an ECS instance.
Expected Behavior
I expected
get_object
to work every time.Current Behavior
Currently
get_object
only works sometimes.Reproduction Steps
instantiate a new s3 client, call
get_object
on the client.Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-s3
Environment details (Version of Ruby, OS environment)
Ruby version 3.2.1, AWS ECS Sidekiq worker env.
The text was updated successfully, but these errors were encountered: