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
1 answer

Copy blob from S3 to Swift using aws-sdk gem

I have a bunch of blobs stored in Amazon S3. Ruby aws-sdk gem seems to support Swift, we just need to pass endpoint: swift_client = Aws::S3::Resource.new( endpoint: 'https://swift.me.com/, bucket: 'bucket', credentials:…
nattfodd
  • 1,790
  • 1
  • 17
  • 35
0
votes
1 answer

AWS-SDK Undefined Method presigned_post

A friend has a project that i'm looking to, to be able to upload a video directly to s3. All the code, all the aws gems, and configurations are the same. My codebase says that presigned_post isn't a method on the bucket object - The S3_BUCKET is…
0
votes
1 answer

How to create AWS lambda function from local machine using AWS Ruby SDK

I'm having troubles creating request that will create AWS lambda function from local machine. This is the content that I'm trying to send: require 'aws-sdk' client = Aws::Lambda::Client.new(region: 'us-east-1') args = {} args[:role] =…
Bakir Jusufbegovic
  • 2,806
  • 4
  • 32
  • 48
0
votes
1 answer

What is the AWS SDK equivalent of EC2's Run Command

AWS has a remote management capability for EC2. I am looking for the same thing, but in the Ruby SDK. I see it mentioned in the image below (See second to last sentence) but for the life of me, I can't figure out where this is in the SDK. I have…
traday
  • 1,151
  • 11
  • 21
0
votes
1 answer

How to get Ruby SDK Cloudwatch metics

I am trying to get CPU metrics from cloudwatch using the Ruby SDK v2 in Rails. metric = Aws::CloudWatch::Metric.new( 'AWS/EC2', 'CPUUtilization', region: 'eu-west-1') @stats = metric.get_statistics({ dimensions: [{ :name => 'InstanceID', :value…
Phil
  • 765
  • 2
  • 8
  • 26
0
votes
1 answer

Change Set Operations Not Working in AWS Ruby SDK

I cannot use any of the change set operations in the AWS Ruby SDK. All other create/list/update/delete operations appear to work correctly, but any change set operation gives an error like NoMethodError: undefined method 'list_change_sets' for…
0
votes
1 answer

Does AWS SDK provide event based architecture?

I'm using this link as the tutorial to launch the instance. Following is my code, instance = resource.create_instances.first sleep 10 until instance.state.name == "running" //Do something once instance is up and running Above code launches a…
Abhishek
  • 6,912
  • 14
  • 59
  • 85
0
votes
1 answer

What is the right way to develop using Paperclip and S3, but without connecting to real S3 bucket?

My project uses Paperclip and Amazon S3, but I need a development/test environment that don't connect directly to S3. I've tried to use FakeS3, but with no luck, since I am using aws-sdk version 2 (and all other websites shows how to proceed using…
-1
votes
2 answers

Aws CostExplorer Api giving exception using ruby sdk

I found this reference https://docs.aws.amazon.com/sdkforruby/api/Aws/CostExplorer/Client.html#initialize-instance_method for finding cost of ec2 instance usages ,while in implementing phase i got exception. in gem file i used this …
Neeraj Amoli
  • 976
  • 1
  • 9
  • 14
-2
votes
1 answer

Converting output of one function into array and feed value into variable in other function in ruby

For one of ruby programming logic, am trying to convert the string output of one function into an array and from array have to feed the values to the variables declared in other function of the program //response.each do |instance | print…
Kavitha
  • 1
  • 1
-2
votes
1 answer

Is there any way to connect to the VPN from the EC2 windows instance?

I have a vpn connection for a company. I want to open that vpn connection in a ec2 windows server to open their private url in a ec2 windows server. I am looking for some manual solution. After that, I am planning to do the same connection using aws…
1 2 3 4 5 6
7