Reputation: 11
I am trying to configure a job transcription within AWS Transcribe so that the result is automatically stored in a S3 Bucket.
aws transcribe start-transcription-job --transcription-job-name testingTranscription \
--language-code pt-BR \
--media-format wav \
--media MediaFileUri=s3://[BUCKET_NAME]/audio.wav \
--output-bucket-name s3://[BUCKET_NAME]/
I get the following message:
An error occurred (BadRequestException) when calling the StartTranscriptionJob operation: 1 validation error detected: Value 's3://[BUCKET_NAME]/' at 'outputBucketName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9]
It says something about regular expression pattern, but I think it is a permissions problem. I am not able to figure out how to set this permissions using IAM because when I try to create a Role for the service, it does not appear in the list:
Service list available for roles
The documentation says: "If you use your S3 bucket, you must grant Amazon Transcribe write access."
How can I do this if the service does not accept a role?
Upvotes: 1
Views: 2031
Reputation: 269520
The bucket name should simply be a string containing the bucket name. For example:
aws transcribe start-transcription-job --transcription-job-name testingTranscription \
--language-code pt-BR \
--media-format wav \
--media MediaFileUri=s3://my-input-bucket/audio.wav \
--output-bucket-name my-output-bucket
Upvotes: 1