Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Using AWS CloudFormation to Create a Lambda Function to Use in Neptune

Focus mode
Using AWS CloudFormation to Create a Lambda Function to Use in Neptune - Amazon Neptune

You can use an AWS CloudFormation template to create an AWS Lambda function that can access Neptune.

  1. To launch the Lambda function stack on the AWS CloudFormation console, choose one of the Launch Stack buttons in the following table.

    Region View View in Designer Launch
    US East (N. Virginia) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    US East (Ohio) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    US West (N. California) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    US West (Oregon) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Canada (Central) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    South America (São Paulo) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Europe (Stockholm) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Europe (Ireland) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Europe (London) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Europe (Paris) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Europe (Frankfurt) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Middle East (Bahrain) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Middle East (UAE) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Israel (Tel Aviv) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Africa (Cape Town) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Asia Pacific (Hong Kong) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Asia Pacific (Tokyo) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Asia Pacific (Seoul) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Asia Pacific (Singapore) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Asia Pacific (Sydney) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    Asia Pacific (Mumbai) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    China (Beijing) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    China (Ningxia) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    AWS GovCloud (US-West) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
    AWS GovCloud (US-East) View View in Designer Orange button labeled "Launch Stack" with an arrow icon.
  2. On the Select Template page, choose Next.

  3. On the Specify Details page, set the following options:

    1. Choose the Lambda runtime, depending on what language you want to use in your Lambda function. These AWS CloudFormation templates currently support the following languages:

      • Python 3.9 (maps to python39 in the Amazon S3 URL)

      • NodeJS 18 (maps to nodejs18x in the Amazon S3 URL)

      • Ruby 2.5 (maps to ruby25 in the Amazon S3 URL)

    2. Provide the appropriate Neptune cluster endpoint and port number.

    3. Provide the appropriate Neptune security group.

    4. Provide the appropriate Neptune subnet parameters.

  4. Choose Next.

  5. On the Options page, choose Next.

  6. On the Review page, select the first check box to acknowledge that AWS CloudFormation will create IAM resources.

    Then choose Create.

If you need to make your own changes to the Lambda runtime, you can download a generic one from an Amazon S3 location in your Region:

https://s3.Amazon region.amazonaws.com/aws-neptune-customer-samples-Amazon region/lambda/runtime-language/lambda_function.zip.

For example:

https://s3.us-west-2.amazonaws.com/aws-neptune-customer-samples-us-west-2/lambda/python36/lambda_function.zip
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.