aws / aws/amazon-sagemaker-examples
SNS issue For Async Inference - Sagemaker
- Dominant language
- Jupyter Notebook
- Stars
- 11k
- Forks
- 7k
- Avg merge
- 8h 29m
- Merged PRs (30d)
- 8
Description
**Describe the bug**
Async sagemaker endpoint creation fails when i try add NotificationConfig - under AsyncInferenceConfig
**To reproduce**
The Async Inference without SNS(Notification config) is working as expected, but however when i add a SNS topic for notification it fails to create an endpoint.
For SNS topic creation , i had tried creating a topic with SQS subscription as well as email subscription, however when i had used both these arn's individually they had failed.
I had tried this with having Amazon SNSFullAccess and Amazon SQSFullAccess in my user group.
**Logs**
Seen at the inference endpoint tab in aws sagemaker:
The provided role armawslam: role/service-role/AmazonSageMaker-ExecutionRole-' is invalid. Please ensure the role exists, that its trust relationship policy allows the action "sts:AssumeRole" for the service principal "sagemaker.amazonaws.com", and has "sns Publish" permissions for topic "arn:aws snsus-east-1::
Contributor guide
Research direction
Start by reproducing Async Inference endpoint creation with NotificationConfig and the reported SNS topic ARN, comparing it with the working configuration without SNS. Review the execution role's SageMaker trust relationship and SNS Publish permissions described in the error. Done means the endpoint is created successfully with an SNS notification topic and the required configuration is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, machine-learning, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100