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
已提问 5 年前920 查看次数
2 回答
0
已接受的回答

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

已回答 5 年前
0

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

jmhal
已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则