Skip to content

[Bug Report] #4843

@vikashg

Description

@vikashg

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+=,.@\-_/]+```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions