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
1
vote
0 answers

AWS S3 Ruby Stream Download: Retry connection during chunk download

I was wondering if someone could help me with a streaming download issue I am having? Currently I have a large GZipped XML file stored in a s3 bucket that I need to download, decompress, and parse daily using ruby. Because of the size of the file I…
Will
  • 386
  • 2
  • 15
1
vote
1 answer

AWS marketplace entitlement service api not responding

While trying to get the entitlement informations of a product delivered on AWS: require 'aws-sdk' client = Aws::MarketplaceEntitlementService::Client.new client.get_entitlements({product_code: "#{product_id}"}) I…
Kayofeld
  • 139
  • 1
  • 11
1
vote
1 answer

Fetch an AWS S3 object to use in Rekognition when uploaded via Carrierwave

I have a Gallery and Attachment models. A gallery has_many attachments and essentially all attachments are images referenced in the ':content' attribute of Attachment. The images are uploaded using Carrierwave gem and are stored in Aws S3 via…
1
vote
1 answer

trying to access aws using ruby API, i get error: http.rb:878:in `initialize': execution expired (Seahorse::Client::NetworkingError)

When trying to access aws via RUBY API with a Simple example, i get error: ruby getAllInstances.rb /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `initialize': execution expired…
kamal
  • 9,637
  • 30
  • 101
  • 168
1
vote
1 answer

Why RollingWithAdditionalBatch strategy is ignored during environment update

We are using eb_deployer which under the hood uses ElasticBeanstalk Ruby Aws Sdk. The Aws::ElasticBeanstalk::Client#update_environment method is used in particular to trigger a deployment. I'm trying to make use of RollingWithAdditionalBatch…
miensol
  • 39,733
  • 7
  • 116
  • 112
1
vote
1 answer

Remote notification category not being sent to client device?

I am using Amazon SNS to provide remote notifications for my iOS app and I am having trouble getting notification categories to be included when received on the client device. Here's how I posting the notification from the server using SNS: @client…
1
vote
1 answer

Handling better response from Aws::Route53::Client.new

First time trying to use the Ruby AWS ADK V2 and I am trying to format the data i am getting back and it seems quiet hard getting it into useable format. All I want to do is get a list of Hosted Zones and display in a table. I have a helper that…
Phil
  • 765
  • 2
  • 8
  • 26
1
vote
1 answer

How can you programmatically get the endpoint value of the root domain for an S3 Bucket (static website) that was assigned by AWS via the SDK?

For example: example.com.s3-website-us-east-1.amazonaws.com? How can I get this value programmatically via the SDK? I can't seem to find it: link to docs: http://docs.aws.amazon.com/sdkforruby/api/Aws/S3.html
Stefan Lyew
  • 387
  • 2
  • 15
0
votes
0 answers

What could be causing my Ruby application to only download a 1 KB file when trying to get a video from a private S3 bucket?

We have an S3 private bucket, and the objects within it are also private. We only upload PDF and MP4 files. I am able to download the PDF files from a Ruby application. However, when I try to download a video file, I only receive a 1 KB file. Can…
Ahmed
  • 1
0
votes
1 answer

Ignore AWS ruby SDK global config

I'm working with the AWS ruby SDK and trying to override the global config for a specific client. When I load the application I set the global config for S3 use like this Aws.config.update( endpoint: '****', access_key_id: '****', …
Ted
  • 15
  • 1
  • 4
0
votes
2 answers

Sending sms using AWS sns outside sandbox, still need to verify the new phone number first?

I keep looking for the informaion on AWS SNS services of SMS. I would like to make sure the question before I request AWS account being moved out of the SMS sandbox. I am trying to use this services on a product running on Heroku, which means I have…
0
votes
3 answers

List objects from publicly accessible Amazon S3 bucket

I have one Amazon S3 bucket which is public with list and get permission. I want to list object in ruby. We can use AWS SDK to list objects but it require credentials. I want to list objects in ruby without using credentials. how to achieve this ??
0
votes
1 answer

Use AWS sdk ruby with custom AWS endpoints.json

I am deploying some services on a different cloud than the AWS cloud, but that exposes AWS compatible endpoints. I was given an endpoints.json file that looks like this { "partitions": [ { "defaults": { "hostname":…
Cyril Duchon-Doris
  • 12,964
  • 9
  • 77
  • 164
0
votes
2 answers

How can I print double quotes in ruby

Am trying to bring output like below in AWS console for Cloudwatch metric filter pattern [w1,w2,w3,w4=!"*10.1.1.1*"&&w5=!"*10.1.1.2*"&&w5="*admin*"] for one of my ruby aws sdk script with below function data_of_ips = ["10.1.1.1", "10.1.1.2"] def…
Kavitha
  • 1
  • 1
0
votes
1 answer

ruby-aws-sdk record persists after delete

I'm trying to delete object from aws s3 via key key = "vocs_direct%25252F2021-09-14%25252Fd4c494cc-48a5-4fbd-b6ea-712a8d0b8c55.mp3" AWS_S3_BUCKET.object(key).delete and I get a succesful response [Aws::S3::Client 204 0.231299 0 retries]…
sheff3rd
  • 63
  • 7