我為 Amazon SageMaker Ground Truth 標記任務設定輸入資料時,如何疑難排解連線錯誤?

1 分的閱讀內容
0

我嘗試為 Amazon SageMaker Ground Truth 標記任務設定輸入資料時,想疑難排解連線錯誤。

解決方案

遇到 SageMaker Ground Truth 的連線問題時,您可能會收到類似下列內容的錯誤:

Connection error: There was an issue with your input data setup. Ground Truth could not setup a connection with your dataset in S3. Please check your input data setup and try again, or use the manual data setup option. Network Failure Request id: <request_id>

此錯誤通常是因為 AWS Identity and Access Management (IAM) 角色沒有設定輸入資料所需的許可。

若要疑難排解此錯誤,請確定您使用的角色已附加下列政策:

  • AmazonSageMakerFullAccess (Amazon SageMaker 完整存取權)
  • Amazon Simple Storage Service (Amazon S3) 讀寫存取權

SageMaker 存取權的問題

如果您正在使用的 IAM 角色沒有附加 AmazonSageMakerFullAccess 政策,請將以下 Ground Truth 動作附加至政策:

  • groundtruthlabeling:DescribeConsoleJob
  • groundtruthlabeling:ListDatasetObjects
  • groundtruthlabeling:RunFilterOrSampleManifestJob
  • groundtruthlabeling:RunGenerateManifestByCrawlingJob

如需詳細資訊,請參閱許可

Amazon S3 存取權問題

請確保 IAM 角色包含存取 Amazon S3 儲存貯體中輸入資料檔案的必要許可。如需詳細資訊,請參閱 S3:允許對 S3 儲存貯體中的物件進行讀取和寫入存取

跨帳户存取權的問題

如果您正在設定的資料位於另一個帳戶中,請確定執行角色帳戶具有對 S3 物件的跨帳户存取權。如需詳細資訊,請參閱如何提供對 Amazon S3 儲存貯體中物件的跨帳户存取權?

服務控制政策的問題

請確定組織層級套用的服務控制政策不會限制對成員帳戶的動作。例如,即使執行角色擁有必要的許可,對所有 groundtruthlabeling 動作執行明確 DENY (拒絕) 會限制連線並導致連線錯誤。如需詳細資訊,請參閱 SCP 對許可的影響


AWS 官方
AWS 官方已更新 1 年前