Allowing Access for ML with Athena (Preview)
IAM principals who run Athena ML queries must be allowed to perform the
sagemaker:invokeEndpoint
action for Sagemaker endpoints that they use.
Include a policy statement similar to the following in identity-based permissions
policies attached to user identities. In addition, attach the AmazonAthenaFullAccess
Managed Policy, which grants full access to
Athena actions, or a modified inline policy that allows a subset of actions.
Replace
arn:aws:sagemaker:
in the example with the ARN or ARNs of model endpoints to be used in queries. For
more
information, see Actions,
Resources, and Condition Keys for SageMaker in the
Service Authorization Reference.
region
:AWSAcctID
:ModelEndpoint
{ "Effect": "Allow", "Action": [ "sagemaker:invokeEndpoint" ], "Resource": "arn:aws:sagemaker:
us-west-2
:123456789012
:workteam/public-crowd/default
" }