簡體   English   中英

拒絕訪問錯誤 AWS 轉錄節點 JS API

[英]Access Denied error AWS Transcription Node JS API

我正在使用以下代碼在 Node JS 上使用 AWS 轉錄 API

 const tClient = new TranscribeClient({ region: "us-east-1", credentials: { accessKeyId: AWS_ID, secretAccessKey: SECRET, } }); const params = { TranscriptionJobName: "firstjob", LanguageCode: "en-US", // For example, 'en-US' MediaFormat: "m4a", // For example, 'wav' Media: { MediaFileUri: "https://transcribe-demo.s3-REGION.amazonaws.com/hello_world.m4a", }, }; const run = async () => { try { const data = await tClient.send( new StartTranscriptionJobCommand(params) ); console.log("Success - put", data); return data; // For unit tests. } catch (err) { console.log("Error", err); } }; run();

但是我收到以下錯誤,我已經檢查了所有權限和訪問密鑰是否正確。 我無法理解錯誤原因。

AccessDeniedException: User: arn:aws:iam::494240200407:user/demno_system is not authorized to perform: transcribe:StartTranscriptionJob on resource: arn:aws:transcribe:us-east-1:494240200407:transcription-job/firstjob because no permissions boundary allows the transcribe:StartTranscriptionJob action

任何意見表示贊賞。

如錯誤消息中所述,您有一個不允許此操作的權限邊界。 您向用戶添加所需策略的事實沒有任何效果,因為訪問受權限邊界限制。 您需要編輯用戶的權限邊界以允許這樣做。

請參閱文檔

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM