Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.62 KB

adding_layer.md

File metadata and controls

37 lines (22 loc) · 1.62 KB

Adding layer to lambda endpoint

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.

Navigate to the AWS Lambda service

  1. You first need to navigate to the AWS Lambda service in the AWS Console.

  2. 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.

  3. Next, click on the lambda function.

    Add layer step 1

  4. Once you have click on the function scroll to the very bottom of the page, and you will see the Layers section.

  5. Now click the Add a layer button in the upper right-hand corner of the page. Add layer step 2

Select layer

You will then be presented with the screen you see below.

  1. Select the Custom layers radio button.

  2. In the Customers layers dropdown list select the AI21_layer or whatever you named your layer when creating it.

  3. Then select version 1 in the Version dropdown list.

    • You can have multiple versions of your layer if you ever need to update it.
  4. Click the Add button at the bottom of the screen.

    Add layer step 3

Verify layer was added

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.

Add layer step 4

Previous < Deploying CloudFormation template | Next > Testing Endpoint