I want to provision an Amazon SageMaker Project, but I don't know how.
Resolution
SageMaker Projects use templates that AWS Service Catalog imports to your AWS account. Creating a domain activates the import when one of the following actions happens:
You can provision a SageMaker Project directly from a SageMaker Studio domain. You can also create a SageMaker Project through an API or AWS Command Line Interface (AWS CLI). However, you must provide the ProductId and ProvisioningArtifactId.
Before you begin, turn on project templates for your SageMaker Studio domain. Also, provide AWS Identity and Access Management (IAM) access to your SageMaker Studio users.
Check the Service Catalog status from the Domain Settings tab in the Amazon SageMaker console. You can also invoke the GetSagemakerServicecatalogPortfolioStatus API, or run the following AWS CLI command:
$aws sagemaker get-sagemaker-servicecatalog-portfolio-status
Note: If you receive errors when running AWS CLI commands, make sure that you’re using the most recent version of the AWS CLI.
If you get Access Denied errors or the projects aren't active, then turn on the project templates and grant the required permissions for users. For more information, see SageMaker Studio permissions required to use projects.
After you turn on the projects templates, you must get the ProductID and ProvisioningArtifactID values for the templates to create projects.
To get the the product and provisioning artifact IDs, complete the following steps:
- Open the Service Catalog console.
- In the navigation pane, under Administration, choose Portfolios.
- Choose the Imported tab.
- In the search bar, enter Amazon SageMaker Solutions and MLOps products.
- Choose Amazon SageMaker Solutions and MLOps products.
Review the Products page, and get the Product ID.
- Select the product or project template that you want to use (example: MLOps template for model building and training).
Review the Product list page, and get the Provisioning Artifact ID.
Use the project and provisioning artifact IDs in your CreateProject API or the following AWS CLI command:
$aws sagemaker create-project --project-name myproject
--service-catalog-provisioning-details ProductId="prod-xxxxxx",ProvisioningArtifactId="pa-xxxxxx"