Creating Lambda functions for deployment
Our second (and more complete pipeline) will require a few additional resources to help us deploy our ML model. In this section, we will create the following Lambda functions:
check-if-endpoint-exists
– This is a Lambda function that accepts the name of the ML inference endpoint as input and returnsTrue
if the endpoint exists already.deploy-model-to-new-endpoint
– This is a Lambda function that accepts the model package ARN as input (along with the role and the endpoint name) and deploys the model into a new inference endpointdeploy-model-to-existing-endpoint
– This is a Lambda function that accepts the model package ARN as input (along with the role and the endpoint name) and deploys the model into an existing inference endpoint (by updating the deployed model inside the ML instance)
We will use these functions later in the Completing the end-to-end ML pipeline section to deploy the ML model we...