amazon-sagemaker-examples icon indicating copy to clipboard operation
amazon-sagemaker-examples copied to clipboard

[Bug Report]

Open vikashg opened this issue 6 months ago • 0 comments

Link to the notebook Add the link to the notebook.

Describe the bug As going through the notebook I get the following error

Image

To reproduce The only thing I have changed in the notebook is that I have used an existing sagemaker role and not using the role = get_execution_role() in the notebooks. Another thing I have changed is Validation Specificaiton.ValidationRole in the sagemaker.create_model_package from role to the arn of the aforementioned role. The role was giving an errors as it should be the arn of the role. If I let this parameter be role it was giving the following error

error detected: Value 'AmazonSageMaker-ExecutionRole-20230901T123456' at 'validationSpecification.validationRole' 
failed to satisfy constraint: Member must satisfy regular expression pattern: 
arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+```

vikashg avatar May 22 '25 22:05 vikashg