The current AWS identity is not a role for sagemaker?

前端 未结 3 1543
孤独总比滥情好
孤独总比滥情好 2021-01-04 08:00

I am getting error when i call get_execution_role() from sagemaker in python. I have attached the error for the same.

I have added the SagemakerFullAccess Policy to

3条回答
  •  孤独总比滥情好
    2021-01-04 08:33

    thanks for trying out SageMaker!

    The exception you are seeing already suggests the reason. The credentials you are using are not a role credentials but most likely a user. The format of 'user' credentials will look like:

    'arn:aws:iam::accid:user/name' as opposed to a role: 'arn:aws:iam::accid:role/name'

    Hope this helps!

提交回复
热议问题