-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
Hi There,
My ruby client failed connect to Riak CS (v 1.4.10) instance. Consistently i am getting Aws::S3::Errors::AccessDenied.
Below is some details about the environment information:
In my Ubuntu (14.04), i have ruby 2.4.1p111 installed.
Also used ruby gem to install aws-sdk (3.0.1)
Here is my ruby client (example.rb):
require 'aws-sdk'
Aws::S3
s3 = Aws::S3::Client.new(
access_key_id: '[ACTUAL_ACCESS_KEY]',
secret_access_key: '[ACTUAL_SECRET_KEY]',
region: "us-east-1",
endpoint: "[MY_RIAK_CS_HTTPS_ENDPOINT]"
)
#bucket = s3.list_buckets('2159844069')
resp = s3.list_objects_v2(bucket: "21159841440649")
resp.contents.each do |obj|
puts obj.key
end
Here is the access denied exception stack trace:
naveen@ubuntu:~/cloudlock$ ruby example.rb
/home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-core-3.4.0/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call': Access Denied (Aws::S3::Errors::AccessDenied)
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-s3-1.2.0/lib/aws-sdk-s3/plugins/sse_cpk.rb:22:in `call'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-s3-1.2.0/lib/aws-sdk-s3/plugins/dualstack.rb:26:in `call'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-s3-1.2.0/lib/aws-sdk-s3/plugins/accelerate.rb:35:in `call'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-core-3.4.0/lib/aws-sdk-core/plugins/jsonvalue_converter.rb:20:in `call'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-core-3.4.0/lib/aws-sdk-core/plugins/idempotency_token.rb:17:in `call'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-core-3.4.0/lib/aws-sdk-core/plugins/param_converter.rb:24:in `call'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-core-3.4.0/lib/aws-sdk-core/plugins/response_paging.rb:10:in `call'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-core-3.4.0/lib/seahorse/client/plugins/response_target.rb:23:in `call'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-core-3.4.0/lib/seahorse/client/request.rb:70:in `send_request'
from /home/naveen/.rvm/gems/ruby-2.4.1/gems/aws-sdk-s3-1.2.0/lib/aws-sdk-s3/client.rb:3846:in `list_objects_v2'
from example.rb:21:in `<main>'
Can somebody help me in this issue?
talmoramit
Metadata
Metadata
Assignees
Labels
No labels