Skip to content

SageMaker AI: Error during create User Profiles. UnrecognizedClientException The security token included in the request is invalid

0

I am trying to create User Profiles in my SageMaker domain in AWS console, using my root account, and encountered the following issue:

  • UnrecognizedClientException
  • The security token included in the request is invalid

The user created was remained as Status: Failed.

Some investigations:

  • Domain looks fine. (InService)
  • Permission looks fine. (Using Root)
  • Less likely related to region issue. (Same Region)
  • Less likely related to CLI/SSO issue. (Using console)

Thanks a lot for everyone's help in advance!!!

Enter image description here Enter image description here

1 Answer
-1

The error you're encountering suggests an issue with authentication or permissions, even though you're using the root account. Here are some steps you can take to troubleshoot and resolve this issue:

  1. Check your AWS account credentials: Ensure that your root account credentials are correct and up-to-date. Even though you're using the root account, it's possible that the session token has expired or there's an issue with the credentials.

  2. Clear your browser cache and cookies: Sometimes, cached credentials or cookies can cause authentication issues. Try clearing your browser cache and cookies, then log out and log back in to the AWS console.

  3. Check IAM policies: Although you're using the root account, it's worth checking if there are any IAM policies that might be interfering with the user profile creation process. Ensure that the necessary permissions for creating user profiles in SageMaker are in place.

  4. Verify the execution role: When creating a user profile, you need to specify an execution role. Make sure this role exists and has the necessary permissions to create SageMaker resources.

  5. Check for service quotas: Ensure that you haven't reached any service quotas related to the number of user profiles in your SageMaker domain.

  6. Try using the AWS CLI: As an alternative, you can try creating the user profile using the AWS CLI. This might provide more detailed error messages that could help identify the issue.

  7. Contact AWS Support: If none of the above steps resolve the issue, it may be worth contacting AWS Support for further assistance, as this could be a more complex issue related to your specific account or region.

Remember, while troubleshooting, it's important to follow AWS security best practices. Using the root account for regular operations is not recommended. Consider creating an IAM user with appropriate permissions for managing SageMaker resources once you resolve this issue.
Sources
Create a user to use RStudio - Amazon SageMaker AI
Add user profiles - Amazon SageMaker AI
Troubleshooting Amazon SageMaker AI Identity and Access - Amazon SageMaker AI

answered 2 years ago

  • None of the above points resolved the issue. Asked Amazon Q and tried all of the mentioned points before posting the post.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.