Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][mlops-multi-account-cdk][infra] cannot deploy default sagemaker templates #40

Open
4 tasks
Fatema opened this issue Aug 12, 2022 · 0 comments
Open
4 tasks

Comments

@Fatema
Copy link
Contributor

Fatema commented Aug 12, 2022

Issue: When the Domain is configured to enable default sagemaker templates, the templates are visible in the account however when you try to deploy a default template you would get an error that an IAM role is missing.

Details:
The following error is thrown in sagemaker console during the default project creation:

Error getting the details of Service Catalog Provisioning Parameters. Error message: ValidationException: Access denied while assuming the role arn:aws:iam::<account>:role/service-role/AmazonSageMakerServiceCatalogProductsLaunchRole. Args: {"productId":"prod-ft2gcemh5pdxo","provisioningArtifactId":"pa-o4esuesn5pxv4","pathId":"lpv2-huy4m7aigk6qg"}

Solution:

  • Create Role that would handle the deployment of the default templates, role would need the following policy and must use the following name: "AmazonSageMakerServiceCatalogProductsLaunchRole"
  • Rename the Role that is created in the template mlops-sm-project-template/mlops_sm_project_template/service_catalog_stack.py folder to "AmazonSageMakerServiceCatalogProductsLaunchRole"

Acceptance:

  • Default SageMaker projects created successfully
  • MLOps infra solution deployed successfully

Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant