我正在尝试在 AWS Transcribe 中配置作业转录,以便将结果自动存储在 S3 存储桶中。
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]/
我收到以下消息:
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]
它说明了正则表达式模式,但我认为这是一个权限问题。我无法弄清楚如何使用 IAM 设置此权限,因为当我尝试为服务创建角色时,它没有出现在列表中:
文档说:“如果您使用 S3 存储桶,则必须授予 Amazon Transcribe 写入权限。”
如果服务不接受角色,我该怎么做?