Problem configuring output S3 bucket for allowing AWS Transcribe to store t

0

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: https://i.stack.imgur.com/URHSJ.png

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?

jmhal
asked 5 years ago912 views
2 Answers
0
Accepted Answer

Hi,
For the "--output-bucket-name", you just need to specify the bucket (get rid of the s3://):

From:
  --output-bucket-name s3://[BUCKET_NAME]/
To:
  --output-bucket-name [BUCKET_NAME]

This is what I tried:

C:\Users\randy\Downloads>aws transcribe start-transcription-job --transcription-job-name testingTranscription --language-code pt-BR --media-format wav --media MediaFileUri=s3://test.com/nine.wav --output-bucket-name example.com
{
    "TranscriptionJob": {
        "TranscriptionJobName": "testingTranscription",
        "TranscriptionJobStatus": "IN_PROGRESS",
        "LanguageCode": "pt-BR",
        "MediaFormat": "wav",
        "Media": {
            "MediaFileUri": "s3://test.com/nine.wav"
        },
        "CreationTime": 1569997500.483
    }
}

Hope this helps

-randy

answered 5 years ago
0

Thank you very much, Randy. That was the problem.

jmhal
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions