Skip to content

free tier sagemaket domian creation fails with 2 errors about defaultSpaceSettings.executionRole

0

free tier sagemaket domian creation fails with 2 errors about defaultSpaceSettings.executionRole ValidationException 2 validation errors detected • Value '' at 'defaultSpaceSettings.executionRole' failed to satisfy constraint: Member must have length greater than or equal to 20 • Value '' at 'defaultSpaceSettings.executionRole' failed to satisfy constraint: Member must satisfy regular expression pattern: ^arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+$

  • How are you creating the domain? Is it through console/API? You seem to be either missing the space default role, or providing it a value that doesn't follow the ARN format.

asked 3 years ago330 views
1 Answer
0

I just encountered this when creating a new execution role at the same time as the domain. This appears to be a bug in the console that occurs when you try to create a domain and use the "create a new execution role" feature. It is not properly attaching the new role ARN to the new domain, so you get this error.

The fix is to create the execution role and then create the domain. The domain wizard will have properly created it for you so:

Once you see this error try clicking the create button again, then selecting the already existing role (the one it just created, do not create a second execution role) Make sure to fill out the rest of the domain fields again.

Additionally if you have tried going through the wizard multiple times you are going to want to go to IAM and delete any duplicate execution roles. Make sure not to delete the one the domain is actually using!

answered 3 years ago

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.