Skip to content

How to Approve a SageMaker model in AWS CLI

Sometimes you will need to manually approve a SageMaker model package from the AWS CLI.

Step 1 – Get a list of the available packages

aws sagemaker list-model-packages --model-package-group-name "the-model-package-group"
Code language: Bash (bash)

This will produce the following output:

{ "ModelPackageSummaryList": [ { "ModelPackageGroupName": "...", "ModelPackageVersion": "...", "ModelPackageArn": "the-arn-we-will-use-below", "ModelPackageDescription": "...", "CreationTime": "...", "ModelPackageStatus": "Completed", "ModelApprovalStatus": "PendingManualApproval" }, ... ] }
Code language: JSON / JSON with Comments (json)

Step 2 – Approve the model

aws sagemaker update-model-package --model-package-arn <ARN-FROM-ABOVE> --model-approval-status Approved
Code language: Bash (bash)

See also  How to Find the Smallest Integer in the Array in Java
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x