Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
111 views

I'm running on an amazon linux instance which has been granted an instance profile, to a iam role with a maximum session duration of 12 hours. According to the documentation, I shouldn't be able to ...
voxobscuro's user avatar
  • 2,189
0 votes
1 answer
37 views

Previously I could create a policy like: AWS::Core::Policy.new.allow(:resource => some_arn, :principals => some_users, :actions => some_actions) However, since upgrading the Ruby sdk v3, ...
patrick's user avatar
  • 9,824
0 votes
2 answers
343 views

I'm trying to use the AWS SecretsManager SDK in Ruby and I'm getting the following error: .rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/aws-sdk-core-3.186.0/lib/aws-sdk-core/ini_parser.rb:28:in `...
Alvaro's user avatar
  • 69
1 vote
2 answers
267 views

This has got me really stumped and hope that someone might have some insight on this. We are using Ruby and the AWS SDK to invoke a AWS Lambda synchronously. The time it take for the Lambda to ...
user2622636's user avatar
1 vote
0 answers
434 views

I currently have Rails applications that use SES to send emails. Unfortunately no matter how much code I put in my application I still get emails with invalid email addresses. I want to use AWS to ...
Pamela Cook - LightBe Corp's user avatar
2 votes
1 answer
416 views

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:...
Ted's user avatar
  • 35
0 votes
2 answers
2k views

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 ...
KaoChing-Ya's user avatar
0 votes
3 answers
1k views

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 ...
Akshay Gopani's user avatar
4 votes
0 answers
1k views

I'm getting the error "tried to create Proc object without a block (ArgumentError)" from the AWS SDK Core gem when trying to run a rails app after upgrading ruby to 3.1.1. This surprises me ...
Jared Sohn's user avatar
0 votes
1 answer
237 views

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": [ ...
Cyril Duchon-Doris's user avatar
5 votes
2 answers
462 views

I have a Rails 6 app, where registered users(Owner) can upload files - images/videos on S3 and then the the owner can provide access to other users(invitations) to view their uploaded content. Is ...
Milind's user avatar
  • 5,122
0 votes
2 answers
157 views

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 ...
Kavitha's user avatar
  • 11
-2 votes
1 answer
77 views

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 ...
Kavitha's user avatar
  • 11
1 vote
2 answers
2k views

I want to put a lifecycle_configuration to an S3 bucket with a rule that uses a filter with multiple tags and a prefix. I can successfully put_lifecycle_configuration if the filter uses only one tag ...
aenw's user avatar
  • 851
0 votes
1 answer
32 views

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 ...
sheff3rd's user avatar
3 votes
4 answers
5k views

I am having a legacy ruby daemon script that runs on a linux server. On upgrading all ruby and gem package versions with in the instance, the daemon script is now erroring out. Same error I am getting ...
Sarga's user avatar
  • 169
0 votes
0 answers
233 views

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....
Praveen Kumar's user avatar
0 votes
1 answer
5k views

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 ...
Mattix's user avatar
  • 47
0 votes
1 answer
487 views

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 ...
Olesya's user avatar
  • 392
1 vote
1 answer
4k views

I'm using the Ruby SDK for AWS ECS to kick-off a task hosted in Fargate via run_task method. This all works fine with the defaults — I can kick off the task OK and can send along custom command ...
anotherdave's user avatar
  • 6,814
5 votes
1 answer
1k views

Looking at the documentation for AWS Glue Schema Registry it seems like you can't use it for Node.js or Ruby on Rails: The AWS Glue Schema Registry supports AVRO (v1.10.2) data format and Java ...
Sandip Subedi's user avatar
0 votes
1 answer
672 views

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" key. https://docs.aws....
Anton James's user avatar
2 votes
0 answers
670 views

I have a Ruby on Rails app and I am currently getting this message. What's the best way to go about resolving this issue? Ruby 2.5.8 Rails 5.2 Following AWS Gems are available: * aws-eventstream (1....
Aaron A's user avatar
  • 543
1 vote
0 answers
226 views

Currently, the way to write the source differs depending on the execution environment and I want to fix it to a unified writing style. The code is as follows depending on the environment. When ...
negabaro's user avatar
  • 4,133
0 votes
1 answer
181 views

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 ...
battibatch's user avatar
0 votes
1 answer
142 views

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 ...
MarkC's user avatar
  • 121
1 vote
2 answers
2k views

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-...
matt's user avatar
  • 9,502
1 vote
1 answer
347 views

SQS client raises Aws::SQS::Errors::NonExistentQueue error when queue is not found. But, why https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Errors.html This doc doesn't mention a thing about ...
Mike's user avatar
  • 735
1 vote
1 answer
3k views

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 = Aws::...
deepak asai's user avatar
2 votes
0 answers
648 views

Question I'm trying to determine wether an error returned by the AWS ruby SDK is a server error or a client error. Using gem 'aws-sdk-s3', '~> 1'. Looking at the documentation: https://docs.aws....
Pierre-Louis Lacorte's user avatar
0 votes
1 answer
124 views

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::...
Asep Bagja Priandana's user avatar
9 votes
2 answers
2k views

I have a ec2 instance which has a profile attached. I can use awscli and it uploads to the bucket fine. root@ocr-sa-test:/# aws s3 ls s3://company-ocr-east/ PRE 7_day_expiry/...
Mike's user avatar
  • 7,881
1 vote
0 answers
110 views

I hope you are all well. I want to create an instance for a cluster using ruby. First, I created the client: client = Aws::ECS::Client.new(Client.params) After that, I tried to prepare a variable for ...
Pedro Paiva's user avatar
1 vote
0 answers
52 views

I'm trying to add cache_control to images within s3 buckets via a Ruby script, yet I keep running into an Access Denied (Aws::S3::Errors::AccessDenied) error. All my environment variables are correct, ...
jstamos's user avatar
  • 55
0 votes
2 answers
2k views

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 ...
Fintan Moloney's user avatar
2 votes
0 answers
280 views

Background: I'm writing an automated deployment script to deploy a ruby on rails application to AWS on an EC2 instance using S3 as the storage for ActiveStorage. My script creates an instance profile/...
mattwise's user avatar
  • 1,506
4 votes
2 answers
4k views

I’m trying out Sharetribe Community Edition on a Debian 10 server (not AWS) following these instructions: https://github.com/sharetribe/sharetribe#installation I am stuck on step 7 with the following ...
eni41's user avatar
  • 41
1 vote
1 answer
467 views

Im working with the aws sdk and want to use the get_command_invocation method. This is what I have in accordance with the docs: resp = client.send_command( instance_ids: [instance_id], ...
letsc's user avatar
  • 2,577
1 vote
0 answers
104 views

I am using the Ruby AWS SDK with Rails. Does the SDK provide a way to cache KMS data keys? I'd like to lessen the requests to KMS to improve app performance.
Hokiedood's user avatar
  • 123
0 votes
1 answer
1k views

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 ...
Cyril Duchon-Doris's user avatar
1 vote
0 answers
2k views

I am having a terrible time trying to figure out why duplicate files are being uploaded. Here's what's happening: We upload photos of varying size (i.e. 75 width, 300 width, 1920 width, etc). The ...
Drew P's user avatar
  • 63
4 votes
1 answer
1k views

So I'm new to ruby and I have a simple REST API. The post request looks like this: POST /endpoint, { 'message': 1 } My lambda handler looks like this: def run(event:, context:) puts "#{event['...
edmamerto's user avatar
  • 8,235
1 vote
1 answer
541 views

I've set up by elasticsearch.rb initializer with the following aws_credentials. Searchkick.aws_credentials = { credentials: Aws::InstanceProfileCredentials.new.credentials, region: 'us-west-...
aoh's user avatar
  • 1,190
0 votes
1 answer
420 views

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 '...
aws-ruby's user avatar
0 votes
2 answers
374 views

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....
tagaism's user avatar
  • 642
1 vote
1 answer
2k views

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 ...
Fdo's user avatar
  • 1,123
0 votes
1 answer
55 views

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 ...
Alex Cohen's user avatar
  • 6,326
1 vote
1 answer
1k views

I am trying to create an AWS SQS standard queue locally with localstack and using ruby's aws-sdk-sqs library. I am running into an error when passing in parameters into the RedrivePolicy attribute. I ...
Charles Okara's user avatar
0 votes
1 answer
1k views

I'm using Webmock to test http requests made by the ruby aws-sdk (in this case aws-sdk-batch). Webmock handles json requests with a much more convenient hash diff and partial matching when the ...
Jacob Dalton's user avatar
  • 1,703
0 votes
1 answer
50 views

I'm trying to backup Cognito users using the AWS Ruby SDK. Everything is going well except when I call to_json on any users attributes, it outputs every value as "[FILTERED]". If I use to_yaml ...
Richard Hurt's user avatar
  • 2,068