i tried to SageMaker MLOps Project Walkthrough Using Third-party Git Repos using AWS pipline. I am begginer in AWS. But always It shows
‘Studio encountered an error when creating your project. Try recreating the project again.
User: arn:aws:sts::494026973566:assumed-role/AmazonSageMakerServiceCatalogProductsLaunchRole/servicecatalog is not authorized to perform: sagemaker:AddTags on resource: arn:aws:sagemaker:ap-south-1:494026973566:code-repository/sagemaker-p-vumrjwtu29ap-modelbuild because no identity-based policy allows the sagemaker:AddTags action (Service: AmazonSageMaker; Status Code: 400; Error Code: AccessDeniedException; Request ID: a187898b-91b3-4b7a-aa9f-48bafc293dac; Proxy: null)’
I include the image as well.
enter image description here
2
Answers
You need to make sure the role that is used by ServiceCatalog has a policy to allow
sagemaker:AddTags
.You can go to the IAM console, look up the role that is listed in the error message, and add
sagemaker:AddTags
to the list ofActions
in the policy.went away after adding an inline
sagemaker:AddTags
policy to the AWS providedAmazonSageMakerServiceCatalogProducts
Policy