Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.4 KB

update_sagemaker_role.md

File metadata and controls

27 lines (14 loc) · 1.4 KB

Update the Sagemaker role to use Amazon Athena

If when using using Athena from a notebook, you get the following permissions error: An error occurred (AccessDeniedException) when calling the StartQueryExecution operation: User: arn:aws:sts::055102001469:assumed-role/sagemaker-notebook-instance-role/SageMaker is not authorized to perform: athena:StartQueryExecution on resource: arn:aws:athena:us-east-1:055102001469:workgroup/primary because no identity-based policy allows the athena:StartQueryExecution action then you need to update your IAM permissions.

  1. Go to IAM, and click on Roles.

  1. Search for the sagemaker-notebook-instance-role from the error message. Select the role in blue.

  1. Click Add permissions then Create inline policy.

  1. Fill out the form as in the screen shot below to attach the permission to the Sagemaker Role. Click Review Policy

  1. Name your policy and click Create policy

  1. Confirm that the new policy is listed for the Sagemaker Role.