Sometimes you will need to manually approve a SageMaker model package from the AWS CLI.
Step 1 – Get a list of the available packages
1
|
aws sagemaker list-model-packages --model-package-group-name "the-model-package-group"
|
This will produce the following output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{
"ModelPackageSummaryList": [
{
"ModelPackageGroupName": "...",
"ModelPackageVersion": "...",
"ModelPackageArn": "the-arn-we-will-use-below",
"ModelPackageDescription": "...",
"CreationTime": "...",
"ModelPackageStatus": "Completed",
"ModelApprovalStatus": "PendingManualApproval"
},
...
]
}
|
Step 2 – Approve the model
1
|
aws sagemaker update-model-package --model-package-arn <ARN-FROM-ABOVE> --model-approval-status Approved
|