

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 CloudFormation 创建要在 Neptune 中使用的 Lambda 函数
<a name="get-started-cfn-lambda"></a>

您可以使用 CloudFormation 模板来创建可以访问 Neptune 的 AWS Lambda 函数。

1. 要在 CloudFormation 控制台上启动 Lambda 函数堆栈，请选择下表中的**启动堆栈**按钮之一。


<table>
<thead>
  <tr><th>Region</th><th>视图</th><th>在 Designer 中查看</th><th>启动</th></tr>
</thead>
<tbody>
  <tr><td>美国东部（弗吉尼亚州北部）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=us-east-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>美国东部（俄亥俄州）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=us-east-2&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>美国西部（北加利福尼亚）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=us-west-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>美国西部（俄勒冈州）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=us-west-2&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>加拿大（中部）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=ca-central-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>南美洲（圣保罗）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=sa-east-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>欧洲地区（斯德哥尔摩）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=eu-north-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>欧洲地区（爱尔兰）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=eu-west-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>欧洲地区（伦敦）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=eu-west-2&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>欧洲地区（巴黎）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=eu-west-3&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>欧洲地区（法兰克福）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=eu-central-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>中东（巴林）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=me-south-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=me-south-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=me-south-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>中东（阿联酋）：</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=me-central-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=me-central-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=me-central-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>以色列（特拉维夫）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=il-central-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=il-central-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=il-central-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>非洲（开普敦）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=af-south-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=af-south-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=af-south-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>亚太地区（香港）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=ap-east-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=ap-east-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=ap-east-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>亚太地区（东京）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=ap-northeast-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>亚太地区（首尔）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=ap-northeast-2&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>亚太地区（新加坡）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=ap-southeast-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>亚太地区（悉尼）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=ap-southeast-2&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>亚太地区（孟买）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.aws.amazon.com/cloudformation/designer/home?region=ap-south-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>中国（北京）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.amazonaws.cn/cloudformation/designer/home?region=cn-north-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.amazonaws.cn/cloudformation/home?region=cn-north-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.amazonaws.cn/cloudformation/home?region=cn-north-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>中国（宁夏）</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.amazonaws.cn/cloudformation/designer/home?region=cn-northwest-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.amazonaws.cn/cloudformation/home?region=cn-northwest-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.amazonaws.cn/cloudformation/home?region=cn-northwest-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>AWS GovCloud (US-West)</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.amazonaws-us-gov.com/cloudformation/designer/home?region=us-gov-west-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-west-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-west-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
  <tr><td>AWS GovCloud (US-East)</td><td><a href="https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">视图</a></td><td><a href="https://console.amazonaws-us-gov.com/cloudformation/designer/home?region=us-gov-east-1&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">在 Designer 中查看</a></td><td><a href="https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-east-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json">https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-east-1#/stacks/new?stackName=NeptuneLambdaQuickStart&amp;templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/v2/cloudformation-templates/lambda/neptune-lambda-quick-start.json</a> </td></tr>
</tbody>
</table>


1.  在 **Select Template** 页面上，选择 **Next**。

1. 在**指定详细信息**页面上，设置以下选项：

   1. 根据您要在 lambda 函数中使用的语言，选择 lambda 运行时系统。这些 CloudFormation 模板目前支持以下语言：
      + **Python 3.9**（映射到 Amazon S3 URL 中的 `python39`）
      + **NodeJS 18**（映射到 Amazon S3 URL 中的 `nodejs18x`）
      + **Ruby 2.5**（映射到 Amazon S3 URL 中的 `ruby25`）

   1. 提供相应的 Neptune 集群端点和端口号。

   1. 提供相应的 Neptune 安全组。

   1. 提供相应的 Neptune 子网参数。

1. 选择**下一步**。

1. 在**选项**页面上，选择**下一步**。

1. 在**审核**页面上，选中第一个复选框以确认 CloudFormation 将创建 IAM 资源。

   然后选择**创建**。

如果您需要对 lambda 运行时系统进行自己的更改，则可以从您区域中的 Amazon S3 位置下载一个通用的运行时系统：

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

例如：

```
https://s3.us-west-2.amazonaws.com/aws-neptune-customer-samples-us-west-2/lambda/python36/lambda_function.zip
```