Questions tagged [aws-sdk-ruby]

The official AWS SDK for Ruby is a gem used to access many AWS services such as S3, EC2, DynamoDB, Glacier, SQS, SimpleDB, Elastic Beanstalk and more.

The AWS SDK for Ruby is an official gem provided to facilitate interactions with numerous AWS services. For version 3, services have been modularized into individual gems that can be imported, such as aws-sdk-s3 or aws-sdk-ec2. Alternatively, the aws-sdk gem will import every available service gem.

This tag can be used for questions regarding either the general aws-sdk gem, or any of its supported services gems.

Resources:

101 questions
0
votes
0 answers

aws ruby sdk - read a pretty large file from S3

I am trying to read around 1.5GB size from s3 using ruby sdk for aws. S3 gem is - gem 'aws-sdk' ( https://github.com/aws/aws-sdk-ruby ) most_recent_s3_object = s3_resource.bucket(bucket_name).objects.max_by(&:last_modified) Here…
Praveen Kumar
  • 332
  • 4
  • 11
0
votes
1 answer

Aws::S3::Errors::InvalidAccessKeyId (The AWS Access Key Id you provided does not exist in our records.)

On a Rails 6 app I use aws-sdk-s3 with ActiveStorage and I want to upload images. Steps: I created a IAM User on AWS with S3FullAccess I configured storage.yml (see below) I created an config/aws.rb file with the following Here is my…
Mich Dart
  • 37
  • 1
  • 5
0
votes
1 answer

Erroneous Aws::ECS::Errors::ClusterNotFoundException — what is happening?

I have an ECS cluster, an active service for it, and a task for this service. I am trying to call ListTasks with Ruby AWS SDK. When there is no active task, it comes through with an empty list, as expected. But when there is a running task, I get…
Olesya
  • 272
  • 1
  • 3
  • 8
0
votes
1 answer

Add tag using s3.put_object

I am using aws-sdk-core v2.2.37 as I cannot upgrade for various reasons. Despite the documentation clearly showing that I can add a tag to the object with the "tagging"…
Anton James
  • 385
  • 3
  • 6
  • 18
0
votes
1 answer

AWS Ruby SDK Cloudformation will not validate a template

running into a ruby Cloudformation problem I have a super simple cloudformation template is will validate and create_stack with AWS CLI, but failing when I run either of the same commands with the the Ruby SDK. $ cat…
0
votes
1 answer

SES SDK Rails6 not picking up Region

Update: I turned on config.action_mailer.raise_delivery_errors = true Which resulted in reported error about the region being used - which is not the one I configured. The following identities failed the check in region US-EAST-1 However per…
MarkC
  • 51
  • 5
0
votes
1 answer

How do I use the results of an SSM port forwarding session started with ruby?

I'm having trouble reconciling the differences between using the aws cli and the ruby sdk to make ssm connections to an instance. For example, if I try using the command like like this: aws ssm start-session \ --target 'i-abc123' \ …
matt
  • 9,113
  • 3
  • 44
  • 46
0
votes
1 answer

How to upload an object using presigned URL along with tags in s3 aws-sdk-ruby v3

I am trying to upload an object using a presigned URL. But I want to upload the the object along with tags. What is the proper way to do it? Approach 1: I tried the following ruby code: signer =…
0
votes
1 answer

Rails ActiveJob can't load aws-sdk-transcribeservice

In my Rails application, I need to use AWS Transcribe service. But, when I tried to create the AWS client from inside ActiveJob, the Sidekiq log always gives me NameError: uninitialized constant Aws::TranscribeService. But, when I tried to create…
0
votes
2 answers

How do I fix this error NameError: uninitialized constant AWS

So I got this error: NameError: uninitialized constant which StackOverflow says means that it is unintentionally upgrading, but that cannot be, because my version is the highest, I have in the gem file: gem "aws-sdk-s3", require: false Could it have…
0
votes
1 answer

Aws SDK Ruby - retrieve credentials automatically when configuring Faraday

I enjoy using the AWS SDK without having to specify where to find the credentials, it makes it easier to configure on multiple environment where different types of credentials are available. The AWS SDK for Ruby searches for credentials [...] Is…
Cyril Duchon-Doris
  • 12,964
  • 9
  • 77
  • 164
0
votes
1 answer

How to get AWS access key and secret key using aws-sdk-ruby --aws-sdk-iam,aws-sdk-core

I'm a newbie to aws and ruby. I'm trying to get access key and the secret key using the aws-sdk-ruby, as due to security reasons we do not have access to keys in the AWS Console. I tried to use the 'get_federation_token' 'assume role with SAML' to…
0
votes
2 answers

Can't start rails server after aws-sdk-3 installed

I know that there is a lot of such kind of questions, but still, I believe my case is slightly different. I recently decided to build in an AWS-S3 gem to my rails version 3 project (RUBY_VERSION - 1.9.2p320). After the successfully aws-sdk gem have…
tagaism
  • 624
  • 2
  • 7
  • 26
0
votes
1 answer

Stub response for AWS S3 Ruby SDK

I'm looking for a way to test my code that relies on AWS S3. I found the Advanced Client Stubbing tutorial but I was only able to find the correct way to stub list_objects from the Aws::S3::Client directly. I don't want to refactor my code because…
Fdo
  • 1,053
  • 4
  • 15
  • 38
0
votes
1 answer

Ruby AWS-SDK: How to list the parent checks of a health check

I have a job that cleans out unused health checks. Some of them cant be deleted if they have a parent check resulting in the error: Invalid parameter : Health check SOMEHEALTHCHECKID is still referenced from parent health check(s):…
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104