2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
So the issue seemed to be related to the IAM role. The default role (ModelEndpoint-Role
) does not have access to write S3 files. It worked via the SDK since it uses another role in the sagemaker studio. I did not receive any error message about this.
답변함 2년 전
0
I had the same issue, and it was also related to IAM roles, but with a slight variation. When creating my Sagemaker domain I created a role with the suggested AmazonSageMakerFullAccess
role. This role does have permission to write to S3 buckets, but only to those fulfilling any of the the patterns:
"arn:aws:s3:::*SageMaker*",
"arn:aws:s3:::*Sagemaker*",
"arn:aws:s3:::*sagemaker*",
"arn:aws:s3:::*aws-glue*"
As my bucket did not contain either of these patterns, it wasn't allowed to write to it. After renaming my bucket to contain "sagemaker" it worked.
답변함 3달 전