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.
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
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?
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'})
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?
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....",
}
})
publish
from multiple threads?
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
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.
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 bothaws-sdk
andaws-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'"?
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?