104 questions
0
votes
1
answer
110
views
S3 signed link expiration differs with ruby sdk and aws cli -- the cli is apparently not subject to session expiration?
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 ...
0
votes
1
answer
37
views
where did AWS::Core::Policy go in Ruby v3?
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, ...
0
votes
2
answers
341
views
Ruby AWS SDK secretsmanager 'undefined method `[]' for nil:NilClass (NoMethodError)'
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 `...
1
vote
2
answers
267
views
NetTimeout when using Ruby AWS SDK to invoke a synchronous Lambda in threads
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 ...
1
vote
0
answers
433
views
AWS-SDK-SES: How Can I Check the Existence of an Email Address in Rails?
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 ...
2
votes
1
answer
416
views
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:...
0
votes
2
answers
2k
views
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 ...
0
votes
3
answers
1k
views
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 ...
4
votes
0
answers
1k
views
"Tried to create Proc object without a block" error when running AWS SDK with ruby 3.1
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 ...
0
votes
1
answer
237
views
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": [
...
5
votes
2
answers
458
views
Rails 6 - Allow/Disallow file download as per user role for files on AWS S3
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 ...
0
votes
2
answers
156
views
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 ...
-2
votes
1
answer
77
views
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 ...
1
vote
2
answers
2k
views
How can I update a lifecycle configuration with a filter based on both prefix and multiple tags in Ruby?
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 ...
0
votes
1
answer
32
views
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 ...