Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info

I'm trying to automate creation of EMR instance on event. cli command look like

aws emr create-cluster --auto-scaling-role EMR_AutoScaling_DefaultRole --applications Name=Hadoop Name=Zeppelin Name=Spark Name=Hive Name=Hue Name=HBase --bootstrap-actions


Hello everyone. Happy Christmas!

LoadError (cannot load such file -- aws-sdk-s3):

app/controllers/editor_controller.rb:1:in `<main>'

I am getting this error with require 'aws-sdk-s3'.
But I have installed both aws-sdk and aws-sdk-s3.
I think it is an issue with the version but I am not sure how to fix it.
my rails version is 6.1.0.
Please help me. Thank you.


Hello everyone. Happy Christmas!

LoadError (cannot load such file -- aws-sdk-s3):

app/controllers/editor_controller.rb:1:in `<main>'

I am getting this error with require 'aws-sdk-s3'.
But I have installed both aws-sdk and aws-sdk-s3.
I think it is an issue with the version but I am not sure how to fix it.
my rails version is 6.1.0.
Please help me. Thank you.

have you tried "require 'aws-sdk'"?

Steve Stofiel

Hello All (Happy New Year). Been seeing allot of this error while uploading to S3. Using ruby v2.5.3, sidekiq v5.1.3, aws-sdk-s3 v1.48

Errno::EBADF: Bad file descriptor @ fptr_finalize_flush - /Volumes/Delivery/Client/ACME_THREADS/RoadRunener/tifs/wile_e_coyote.tif
WARN System: /usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:48:in `close'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:48:in `open'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:48:in `open_file'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:41:in `put_object'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:34:in `upload'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/customizations/object.rb:308:in `upload_file'

Anyone ran into this before?

Dominic Son
holy hell where is the ruby REPL aws-v3.rb file to run for deeper more direct AWS interactions?
Dominic Son
Just contacted aws via the 'was this page helpful' link.. hopefully it actually reaches someone at AWS that can clarify where it is (via https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/repl.html )
I've also tried aws-sdk-core gem, and aws-sdk-resources gem, as suggested from https://dev.to/clouderie/working-with-the-aws-sdk-for-ruby-part-i-4a73
what thats amplify error mean ? "ResourceNotFoundException" im using AuthsigUp()method class from aws-amplify libary in react native and it failed to signup to cognito
Andrey Khataev
Hi! Could someone clarify distinction between String and StringList types in AWS Parameter store? I could tolerate the fact, that StringList parameter is String itself and interface for its input is the same - I just need to use commas. But it seems to have no difference even when getting its value - it returns this string with commas
I'm using SSM::Client#get_parameter for retrieving the value

Hi! I have pre-existing S3 URLs (basically full URLs) that I would like to create signature for. I'm trying code similar to this but getting 'signature does not match' errors when trying out the URLs. I'm using the Aws::Sigv4::Signer class since it takes a full URL. What could I be doing wrong? I prefer not to have to break up my URLs into its constituent parts (i.e. the key of each objects, the bucket, etc) as they are saved as full URLs in the database.

S3_ACCESS_KEY = '********'
S3_ACCESS_SECRET = '*******'

v4_signer = Aws::Sigv4::Signer.new(
  service: 's3',
  region: 'us-east-1',
  access_key_id: S3_ACCESS_KEY,
  secret_access_key: S3_ACCESS_SECRET,

#this fails (invalid signature)
v4_signer.presign_url(:url => 'https://s3.amazonaws.com/testbucket/test_key.pdf', :http_method => 'GET').to_s

#hostname variants fails (invalid signature)
v4_signer.presign_url(:url => 'https://testbucket.s3.amazonaws.com/test_key.pdf', :http_method => 'GET').to_s

They S3_ACCESS_KEYand S3_ACCESS_SECRET work as I have used them in other contexts and with the aws cli.
Appreciate any help on figuring out how to generate these.

how can i setup chime.
i want to make video calling mobile application using aws chime.
i dont know about aws server
Have you found any chime demo applications?
Michael Crone
I am using ruby via a installation/platform called Aspera Orchestrator. I'm having problems loading aws-sdk-mediaconvert. I am getting:
Seahorse::Client::NetworkingError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
I did read about trying Aws.use_bundled_cert! but it doesn't appear to resolve.
Any suggestions on how to move past this error?
Padma Priya
We are using aws sdk ruby from fluentd to s3 store. Wanted to know is there is any impact of recent s3 migration to TLS Certificates.
Dan Elkis
Hey, was there any version of the ruby SDK that had the read method on AWS::S3::Object?
We seem to be getting this message intermittently (not at all consistently) when sending email. Not sure what we need to change: Additional error (AWS::SES::ResponseError: AWS::SES Response Error: InvalidClientTokenId - Signature Version 3 requests are deprecated from March 1, 2021. From that date on, we are progressively rejecting such requests. To resolve the issue you must migrate to Signature Version 4. If you are self-signing your requests, refer to the documentation for Authenticating requests to the Amazon SES API [1] with Signature Version 4 [2]. If you are not self-signing your requests, simply update your SDK/CLI to the latest version. [1] https://docs.aws.amazon.com/ses/latest/DeveloperGuide/using-ses-api-authentication.html [2] https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html)
Wesley Robinson
I am generating QR code svg data string that I want to use to create an svg file on s3, any ideas on how I can do that?
Hi! Does anyone know how to assume role for a particular user? I'm using code like this:
    Aws.config.update({credentials: Aws::Credentials.new(Settings.access_key_id, Settings.secret_access_key), region: 'us-east-1'})
    s3 = Aws::S3::Client.new(credentials: Aws::AssumeRoleCredentials.new(client: Aws::STS::Client.new(region: 'us-east-1',), role_arn: "<my role arn>", role_session_name: "some-external-ID"))
and I get an error like this: Aws::STS::Errors::AccessDenied: User: <my role arn> is not authorized to perform: sts:AssumeRole on resource: <my role arn>
I have a Prores video with this audio config (L,R,C,LFE,LS,RS,LT,RT) and I am looking to remap the output channel to (LT+RT) on track2 only. Can aws media convert do this conversion?
Manish Sharma
Hey Anyone there
Alessandro Brigandì
hello, someone know if in a Aws SQS, how can i poll message 'subscribing' to a message_group_id? in the class Aws::SQS::QueuePoller i dont see any option for the group
BadRequestException: An error occurred (BadRequestException) when calling the CreateJob operation: /outputGroups/0/outputs/0/videoDescription/width: Should be less than or equal to 992
width: 3360 Height: 2100
cant process video to HSL in mediaconverter
Ben Koshy
Would any one know how to get the IAM actions which allow different types describing VPN VPN connections - or would you know where I can get the associated actions which allow for it?
Anil Maurya
Hi everyone do you guys any idea on aws certificate manager
G Tjong A Hung
Hi all
I am writing code in rubyonjets. In my console (jets console) on my machine my code seems to work, however when deployed on AWS Lamda it seems that calls to my Aws::S3::Client.new seem to timeout. Well not all functions timeout. I am able to do .config.credentials.access_key_id or .config.region, but .list_buckets seems to timeout
G Tjong A Hung
[2021-07-10T12:43:57.673312 #11] DEBUG -- : [Aws::S3::Client 0 62.106283 3 retries] list_buckets() Seahorse::Client::NetworkingError execution expired
Jim Conner
hey all. Can't aws-sdk automatically determine authentication for sub-accounts (.aws/config vs .aws/credentials) based on the profile being used?
Perhaps I'm not using the proper method to auth to aws. The documentation is too referential in this regard. There's not enough explanation at times.