From a4792666c49a921d401f2e04c464dbb80dc85089 Mon Sep 17 00:00:00 2001 From: Zoltan Fedor Date: Mon, 11 Apr 2022 12:10:02 -0400 Subject: [PATCH] Fixes #15 - Only approved models trigger the deployment pipeline - `mlops-template-gitlab` This fixes https://github.com/aws-samples/sagemaker-custom-project-templates/issues/15. Based on the design of `mlops-template-gitlab`, the model deployment pipeline should only be triggered for 'Approved' models. --- mlops-template-gitlab/project.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mlops-template-gitlab/project.yml b/mlops-template-gitlab/project.yml index 6a3cf8b2..16637645 100644 --- a/mlops-template-gitlab/project.yml +++ b/mlops-template-gitlab/project.yml @@ -153,6 +153,8 @@ Resources: detail: ModelPackageGroupName: - !Sub ${SageMakerProjectName}-${SageMakerProjectId} + ModelApprovalStatus: + - "Approved" State: "ENABLED" Targets: - @@ -193,4 +195,4 @@ Resources: - Key: "sagemaker:project-id" Value: !Sub ${SageMakerProjectId} - Key: "sagemaker:project-name" - Value: !Sub ${SageMakerProjectName} \ No newline at end of file + Value: !Sub ${SageMakerProjectName}