how to delete sagemaker project with missing resources?

0

I mistakenly deleted the CloudFormation Stack related to the SageMaker project. and then attempting to delete the project from the projects panel in SageMaker Studio, it fails with a 'stack with id : does not exist' message, resulting in a 'delete failed' status." How can I Fix it?

1개 답변
1

Hi , Can you run DescribeProject action [1] against the project and confirm what is the ProjectStatus. From CLI you can run: aws sagemaker describe-project --project-name <value> . The response from the above command will include a "ProvisionedProductStatusMessage" which will explain why the deletion failed. The issue might be related to missing IAM permissions. Your sagemaker execution role needs to have the following policy statement in the AmazonSageMakerFullAccess policy [2]:

{ "Effect": "Allow", "Action": [ "servicecatalog:TerminateProvisionedProduct", "servicecatalog:UpdateProvisionedProduct" ], "Resource": "*", },

Another potential factor could be that, during the deletion of the project, Service Catalog attempted to assume a role which was attached the service catalogue product but encountered a failure in assuming the role. To troubleshoot this issue, please verify the existence of the roles. If the roles are not found, consider re-creating them in your account. Ensure that the newly created roles have identical names and permissions as the roles that were deleted.

After that try deleting the projects again using: aws sagemaker delete-project --project-name <value>

Reference [1] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/describe-project.html [2] https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsservicecatalog.html#awsservicecatalog-servicecatalog_userLevel [3] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/delete-project.html

Orgad
답변함 6달 전
profile picture
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠