Search code examples
terraformterraform-provider-awsamazon-sagemakeramazon-sagemaker-studio

How to enable SageMaker Projects and Jumpstart on a SageMaker domain using CLI or terraform?


I can edit the SageMaker Domain via the AWS Console > Sagemaker > Domains > xxxx > Domain settings > Edit > Studio settings > SageMaker Projects and JumpStart

enter image description here

But how can I achieve the same thing by using AWS CLI commands and / or terraform ?

Is there a list of exactly all that the console does when I enable all those options? I'm assuming that it will create at least the IAM Roles described at AWS Managed Policies for SageMaker projects and JumpStart, and probably other stuff.


Solution

  • The console action performs the below-

    1. Creates all the required roles for JumpStart and projects
    2. Enables ServiceCatalog portfolio for the domain
    3. Associates your domain's roles with the portfolio.

    To automate this, create the required roles in your account (you've already linked the managed policies above). Instructions for steps 2 and 3 are in the blog here - https://aws.amazon.com/blogs/machine-learning/enable-amazon-sagemaker-jumpstart-for-custom-iam-execution-roles/

    Link to CLI commands: