This section will walk you through how to add the lambda layer to your lambda function that you created in the section Deploying AWS Lambda layer.
-
You first need to navigate to the AWS Lambda service in the AWS Console.
-
If needed search for the lambda function with the function name of Jurassic-2-LLM-lambda-endpoint. You should then see a screen similar to the one below.
-
Next, click on the lambda function.
-
Once you have click on the function scroll to the very bottom of the page, and you will see the Layers section.
-
Now click the Add a layer button in the upper right-hand corner of the page.
You will then be presented with the screen you see below.
-
Select the Custom layers radio button.
-
In the Customers layers dropdown list select the AI21_layer or whatever you named your layer when creating it.
-
Then select version 1 in the Version dropdown list.
- You can have multiple versions of your layer if you ever need to update it.
-
Click the Add button at the bottom of the screen.
After you have successfully added the layer you will now see the layer added to the Layers section of the lambda function's Code tab. See an example below.
Previous < Deploying CloudFormation template | Next > Testing Endpoint