Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Gabriel
@Hamdan85
lol... usual gitter chat... everybody asks, no one answers lol
Fintan Moloney
@Josebuendia
Especially true for this chat room.
Ian
@ianfixes

I'm looking for a convenience method that, given an ARN, will tell me the "official" name of the resource type. It doesn't seem to be as simple as

require 'aws-sdk-core'
a = Aws::ARNParser::parse(SOME_ARN)
(["AWS"] + [a.service, a.resource.split(":")[0]].map(&:capitalize)).join("::")

And I can't find a corresponding client method that does this specifically.

Bhajee
@bharathiraja252
Couldn't find the aws-sdk gem API docs for AWS QLDB to create the records and tables in ruby through API. There is a doc like this https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QLDB.html . But this doesn't have the API details to create the records and tables in ledger datatbase. Please advise on this
Joseph A.
@matedemorphy
there is some additional configuration that has to be done in a elastic beanstalk so public/assets could be found in a rails app?
Matt Muller
@mullermp
@bharathiraja252 https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/QLDB/Client.html although Ion in Ruby is not supported so please use the CLI instead :(
appl044
@appl044
does anyone have sample python code that can pull in Class: Aws::Rekognition::Types::Emotion
Muhammed afsal
@afsalcodehack
Statement = new CfnRuleGroup.StatementOneProperty
{
IpSetReferenceStatement = new
{
Arn = ipSets.AttrArn
}
},
any idea how to set ipset in c#
its getting error
TestWebACL Error reason: Your statement has multiple values set for a field that requires exactly one value., field: STATEMENT, parameter: Statement (Service: Wafv2, Status Code: 400, Request ID: dd0d6492-5aa9-41e2-ac15-ee7bc133d705, Extended Request ID: null)
Korsarz
@CackeMoon_twitter
Hi, I'm trying to create specs for Lambda in ruby using localstack. Do you know if there is any way to create a Lambda function with a ruby code from specific directory using Aws::Lambda::Client? I saw the method "create_function" but I can't find out how to inject the real code there.
Korsarz
@CackeMoon_twitter
NVM I found a solution :scream: I have to specify FunctionCode, there are couple types. I have to:
First ZIP files and keep them in /tmp
Next Create S3 in localstack and upload ZIP lambda code
Next use it in specs
Brian Cicutti
@briancicutti

I have a question regarding access points. Documentation states "When using this API with an access point, you must direct requests to the access point hostname." I am unsure how to configure the client object with the access point hostname and when I do not and simply replace the bucket name with the access point arn, I get the following error. ArgumentError: bucket name must not contain a forward-slash (/)

I am attempting to use list_objects_v2 and put_object

Sibasundar Nayak
@LazySlothBear_twitter
I was trying to run InSpec check in AWS SSM with CIS linux baseline. Got below error
Compliance item can have up to 800 KB in total. (Aws::SSM::Errors::ItemSizeLimitExceededException)
Found the article to rescue all SSM error using Service Error
But don't know on which docuemnt should i paste that
William E Calderon
@wecalderonc
Hi everyone, maybe do you know if we are going to have a QLDB driver for Ruby ? thanks
or maybe anyone knows How to get/compute CommitDigest when committing a transaction in AWS QLDB? but using ruby? thankss
Rainer Hind
@rai-hi
Hello all. I'm getting an error when trying to access Aws::MediaConvert. Here's what I'm trying: Aws::MediaConvert::Client.new({region: 'eu-west-2', access_key_id: 'bla', secret_access_key: 'bla'}) to which AWS is returning Aws::MediaConvert::Errors::BadRequestException: You must use the customer-specific endpoint 'https://xxxxxxxxx.mediaconvert.eu-west-2.amazonaws.com' for this operation.. Any pointers on troubleshooting this issue?
Rainer Hind
@rai-hi
I figured it out. I took the endpoint that was returned in the error message, and added it to the instantiation of the Mediaconvert client:
Aws::MediaConvert::Client.new({endpoint: URI.parse('https://xxxxxxx.mediaconvert.eu-west-2.blabla.com'), region: 'eu-west-2', access_key_id: 'bla', secret_access_key: 'bla'})
Tom Cartwright
@tomcartwrightuk
Hi all. I have started having issues with the TranscribeStreamingService. Seemed to be working fine until a gem update happened yesterday. I am sending audio to an input stream ( instance of Aws::TranscribeStreamingService::EventStreams::AudioStream.new) but I am receiving no results back on material that was previous generating transcription results
Anyone else seen issues with this api in the last couple of days?
Pablo Cangas
@Ascariel

Hi guys, Im trying to start a transcription job using the ruby aws-transcribe sdk, but Im getting the following permissions error when trying to access the audio file in the S3 bucket:

Aws::TranscribeService::Errors::BadRequestException: The S3 URI that you provided can't be accessed. Make sure that you have read permission and try your request again.

Im using an IAM role that has full S3 access and full Transcribe access ... so I don't understand what the problem might be (I even tried using a pre-signed url to test reading permissions and was able to download the audio file without issues, but still got the same permissions error when trying to start the job)

Any ideas?

This is more or less the code im using to trigger the transcription job:
response = client.start_transcription_job({
  transcription_job_name: "FirstTranscriptTest", # required
  language_code: 'en-US',
  media_sample_rate_hertz: 8000,
  media_format: "wav",
  media: { 
    media_file_uri: s3_url, # 'https://crm-assistant-transcribe-transcriptions.s3-us-west-2.amazonaws.com/test_audio.wav'
  },
  settings: {
    vocabulary_name: "VocabularyName",
    show_speaker_labels: true,
    max_speaker_labels: 2,
    channel_identification: true,
    show_alternatives: false,
    max_alternatives: 2,
  },
  job_execution_settings: {
    allow_deferred_execution: true,
    data_access_role_arn: "arn:aws:iam::my_arn....",
  }
})
Pablo Cangas
@Ascariel
I tried the exact same transcription job using the python library and it worked without issues, so im guessing the problem is related to the ruby sdk?
Samuel Williams
@ioquatix
Is Aws::SNS::Client thread safe?
i.e. calling publish from multiple threads?
JatinGangajaliya
@JatinGangajaliya
I am trying to convert .mov/.mp4 file into .mxf file using AWS media convert service. However job is failing in audio selector settings. If we do not specify tracks it says select tracks. If we specify tracks it gives error like audio track[n] is not found.
ajaysinghtoptal
@ajaysinghtoptal
Hey there! What's the best means to talk to Amazon AGCOD(gift card) APIs? aws-sdk gem have support for it (couldn't find it)?
vinay mehta
@vinaymehta
Hey there! I am trying to access one bucket objects containing csv files. I am able to access those files via AWS CLI but not via Ruby SDK and receiving error Aws::S3::Errors::AccessDenied: Access Denied. Any reason?
This is how my configuration is
credentials = Aws::Credentials.new('AWS_KEY_ID', 'AWS_Secret_KEY')
s3 = Aws::S3::Client.new( region: 'eu-west-1', credentials: credentials, logger: Logger.new('s3output.txt'), http_wire_trace: true)
resp = s3.list_objects(bucket: 'BUCKET_NAME')
mohan chhalotre
@mohangurjar82
Aws::MediaConvert::Errors::AccessDeniedException (User: arn:aws:sts::059365402757:assumed-role/aws-elasticbeanstalk-ec2-role/i-00f06251f7469b57f is not authorized to perform: iam:PassRole on resource: arn:aws:iam::059365402757:role/MediaConvert_Default_Role):
I am getting above error on server although from my local system it is working
Any idea?
singulardroid
@singulardroid
Hi colleagues, does anyone know the command/snippet for AWS Ruby SDK to create programmatically (or clone terminated) EMR cluster?
I've researched API reference EMR:: but it has modify/describe commands however no exactly create-cluster command

I'm trying to automate creation of EMR instance on event. cli command look like

aws emr create-cluster --auto-scaling-role EMR_AutoScaling_DefaultRole --applications Name=Hadoop Name=Zeppelin Name=Spark Name=Hive Name=Hue Name=HBase --bootstrap-actions

Lin
@HON9LIN

Hello everyone. Happy Christmas!

LoadError (cannot load such file -- aws-sdk-s3):

app/controllers/editor_controller.rb:1:in `<main>'

I am getting this error with require 'aws-sdk-s3'.
But I have installed both aws-sdk and aws-sdk-s3.
I think it is an issue with the version but I am not sure how to fix it.
my rails version is 6.1.0.
Please help me. Thank you.

reddytej
@reddytej

Hello everyone. Happy Christmas!

LoadError (cannot load such file -- aws-sdk-s3):

app/controllers/editor_controller.rb:1:in `<main>'

I am getting this error with require 'aws-sdk-s3'.
But I have installed both aws-sdk and aws-sdk-s3.
I think it is an issue with the version but I am not sure how to fix it.
my rails version is 6.1.0.
Please help me. Thank you.

have you tried "require 'aws-sdk'"?

Steve Stofiel
@stevestofiel

Hello All (Happy New Year). Been seeing allot of this error while uploading to S3. Using ruby v2.5.3, sidekiq v5.1.3, aws-sdk-s3 v1.48

Errno::EBADF: Bad file descriptor @ fptr_finalize_flush - /Volumes/Delivery/Client/ACME_THREADS/RoadRunener/tifs/wile_e_coyote.tif
WARN System: /usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:48:in `close'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:48:in `open'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:48:in `open_file'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:41:in `put_object'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_uploader.rb:34:in `upload'
'/usr/local/lib/ruby/gems/2.5.0/gems/aws-sdk-s3-1.48.0/lib/aws-sdk-s3/customizations/object.rb:308:in `upload_file'

Anyone ran into this before?

Dominic Son
@deezzer_twitter
holy hell where is the ruby REPL aws-v3.rb file to run for deeper more direct AWS interactions?
Dominic Son
@deezzer_twitter
Just contacted aws via the 'was this page helpful' link.. hopefully it actually reaches someone at AWS that can clarify where it is (via https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/repl.html )
I've also tried aws-sdk-core gem, and aws-sdk-resources gem, as suggested from https://dev.to/clouderie/working-with-the-aws-sdk-for-ruby-part-i-4a73
SHTALKER
@shalomTalker
hii
what thats amplify error mean ? "ResourceNotFoundException" im using AuthsigUp()method class from aws-amplify libary in react native and it failed to signup to cognito
Andrey Khataev
@khataev
Hi! Could someone clarify distinction between String and StringList types in AWS Parameter store? I could tolerate the fact, that StringList parameter is String itself and interface for its input is the same - I just need to use commas. But it seems to have no difference even when getting its value - it returns this string with commas
I'm using SSM::Client#get_parameter for retrieving the value
Arash
@arashb31

Hi! I have pre-existing S3 URLs (basically full URLs) that I would like to create signature for. I'm trying code similar to this but getting 'signature does not match' errors when trying out the URLs. I'm using the Aws::Sigv4::Signer class since it takes a full URL. What could I be doing wrong? I prefer not to have to break up my URLs into its constituent parts (i.e. the key of each objects, the bucket, etc) as they are saved as full URLs in the database.

S3_ACCESS_KEY = '********'
S3_ACCESS_SECRET = '*******'


v4_signer = Aws::Sigv4::Signer.new(
  service: 's3',
  region: 'us-east-1',
  access_key_id: S3_ACCESS_KEY,
  secret_access_key: S3_ACCESS_SECRET,
)

#this fails (invalid signature)
v4_signer.presign_url(:url => 'https://s3.amazonaws.com/testbucket/test_key.pdf', :http_method => 'GET').to_s

#hostname variants fails (invalid signature)
v4_signer.presign_url(:url => 'https://testbucket.s3.amazonaws.com/test_key.pdf', :http_method => 'GET').to_s

They S3_ACCESS_KEYand S3_ACCESS_SECRET work as I have used them in other contexts and with the aws cli.
Appreciate any help on figuring out how to generate these.
Thanks!

nitinmak
@nitinmak
how can i setup chime.
i want to make video calling mobile application using aws chime.
i dont know about aws server
mdlawrenceusa
@mdlawrenceusa
Have you found any chime demo applications?
Michael Crone
@mcrone_gitlab
I am using ruby via a installation/platform called Aspera Orchestrator. I'm having problems loading aws-sdk-mediaconvert. I am getting:
Seahorse::Client::NetworkingError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
I did read about trying Aws.use_bundled_cert! but it doesn't appear to resolve.
Any suggestions on how to move past this error?