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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ