How to add correct permissions to create image collection?

0

I setup a user in sagemaker.
Added role permissions.
Executed python code snippet to create collection.

An error occurred (AccessDeniedException) when calling the CreateCollection operation: User: arn:aws:sts::767317008127:assumed-role/AmazonSageMaker-ExecutionRole-20200713T124931/SageMaker is not authorized to perform: rekognition:CreateCollection on resource: arn:aws:rekognition:us-east-1:767317008127:collection/test

ive tried
To add role policy to user
Recreate user in sagemaker
Im able to create s3 bucket through portal under user id

need some help getting unstuck.

jklacy
질문됨 4년 전386회 조회
1개 답변
0

Hi jklacy@,

Thank you for your interest in Rekognition. In your role policy that you added to your user, did it contain the "rekognition:CreateCollection" action? (See [1] and [2] for an in depth view) This action (or a broader action "rekognition:*") will be necessary in order for your user to be able to create a Rekognition collection.

[1] https://docs.aws.amazon.com/rekognition/latest/dg/security_iam_service-with-iam.html
[2] https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonrekognition.html

AWS
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠