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
gefragt vor 5 Jahren922 Aufrufe
2 Antworten
0
Akzeptierte Antwort

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

beantwortet vor 5 Jahren
0

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

jmhal
beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen