Creating a Lambda function

AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers.

Follow these steps to create an AWS Lambda function that is able to run :
  1. Navigate to the AWS Lambda page in your cloud account in the region of your choice.
  2. Click Create function.
    The Create function page opens.
  3. Fill in the Basic information section:
    1. Keep the default Author from scratch option selected.
    2. Give your function a meaningful name for your use case.
    3. Select Java 8 on Amazon Linux 2 for Runtime.
    4. Choose x86_64 for Architecture.
    5. Click Create function.

    Your function is created and its details are displayed.

  4. In the Code source section of the Code tab, click Upload from > Amazon S3 location.
    The Upload a file from Amazon S3 modal window appears.
  5. Provide the S3 URL of Function binaries in the textbox.
  6. Click Save.
  7. Navigate to the Runtime Settings on the Code tab and click Edit to change the Handler property to: com.cloudera.naaf.aws.lambda.StatelessNiFiFunctionHandler::handleRequest

    The details of your first function:

You can now start configuring your Lambda specifically for your flow and for your use case.