

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# AWS CloudFormation を使用して Streams コンシューマーアプリケーションで Neptune-to-Neptuneレプリケーションをセットアップする
<a name="streams-consumer-setup"></a>

 CloudFormation テンプレートを使用して、Neptune ストリームコンシューマーアプリケーションをセットアップし、Neptune-to-Neptuneレプリケーションをサポートできます。

**Topics**
+ [リージョンの CloudFormation テンプレートを選択する](#streams-consumer-cfn-by-region)
+ [作成中の Neptune Streams コンシューマースタックの詳細の追加](#streams-consumer-cfn-stack-details)
+ [CloudFormation テンプレートを実行する](#streams-consumer-cfn-complete)
+ [最新の Lambda アーティファクトでストリームポーラーを更新するには](#streams-consumer-cfn-update)

## リージョンの CloudFormation テンプレートを選択する
<a name="streams-consumer-cfn-by-region"></a>

 CloudFormation コンソールで適切な CloudFormation スタックを起動するには、使用するリージョンに応じて AWS 、次の表の**起動スタック**ボタンのいずれかを選択します。


| リージョン | 表示 | デザイナーで表示 | 起動する | 
| --- | --- | --- | --- | 
| 米国東部 (バージニア北部) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=us-east-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 米国東部 (オハイオ) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=us-east-2&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 米国西部 (北カリフォルニア) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=us-west-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 米国西部 (オレゴン) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=us-west-2&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| カナダ (中部) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=us-west-2&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 南米 (サンパウロ) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=sa-east-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 欧州 (ストックホルム) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=eu-north-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 欧州 (アイルランド) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=eu-west-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 欧州 (ロンドン) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=eu-west-2&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 欧州 (パリ) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=eu-west-3&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 欧州 (フランクフルト) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=eu-central-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 中東 (バーレーン) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=me-south-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=me-south-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=me-south-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 中東 (アラブ首長国連邦) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=me-central-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=me-central-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=me-central-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| イスラエル (テルアビブ) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=il-central-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=il-central-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=il-central-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| アフリカ (ケープタウン) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=af-south-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=af-south-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=af-south-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| アジアパシフィック (東京) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=ap-northeast-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| アジアパシフィック (香港) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=ap-east-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=ap-east-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=ap-east-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| アジアパシフィック (ソウル) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=ap-northeast-2&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| アジアパシフィック (シンガポール) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=ap-southeast-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| アジアパシフィック (シドニー) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=ap-southeast-2&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| アジアパシフィック (ムンバイ) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.aws.amazon.com/cloudformation/designer/home?region=ap-south-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 中国 (北京) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.amazonaws.cn/cloudformation/designer/home?region=cn-north-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.amazonaws.cn/cloudformation/home?region=cn-north-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.amazonaws.cn/cloudformation/home?region=cn-north-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| 中国 (寧夏) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.amazonaws.cn/cloudformation/designer/home?region=cn-northwest-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.amazonaws.cn/cloudformation/home?region=cn-northwest-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.amazonaws.cn/cloudformation/home?region=cn-northwest-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| AWS GovCloud (米国西部) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.amazonaws-us-gov.com/cloudformation/designer/home?region=us-gov-west-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-west-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-west-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 
| AWS GovCloud (米国東部) | [表示](https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [デザイナーで表示](https://console.amazonaws-us-gov.com/cloudformation/designer/home?region=us-gov-east-1&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json) | [https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-east-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json](https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-east-1#/stacks/new?stackName=NeptuneStreamPoller&templateURL=https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json)  | 

[**Create Stack (スタックの作成)**] ページで、[**Next (次へ)**] を選択します。

## 作成中の Neptune Streams コンシューマースタックの詳細の追加
<a name="streams-consumer-cfn-stack-details"></a>

[**Specify Stack Details (スタック詳細の指定)**] ページには、アプリケーションの設定を制御するために使用できるプロパティとパラメータがあります。

**スタック名**   –   作成する新しい CloudFormation スタックの名前。通常は、デフォルト値、`NeptuneStreamPoller` を使用できます。

[**Parameters (パラメータ)**] で、以下を指定します。

**Streams コンシューマーが実行される VPC のネットワーク設定**
+ **`VPC`** – ポーリング Lambda 関数を実行する VPC の名前を指定します。
+ **`SubnetIDs`** - ネットワークインターフェースが確立されるサブネット。Neptune クラスターに対応するサブネットを追加します。
+ **  `SecurityGroupIds`** –ソース Neptune DB クラスターへの書き込みインバウンドアクセスを許可するセキュリティグループの ID を指定します。
+ **`RouteTableIds`** – これは、Neptune VPC に Amazon DynamoDB エンドポイントを作成するために必要です (まだエンドポイントを持っていない場合)。サブネットに関連付けられたルートテーブル ID のコンマ区切りリストを指定する必要があります。
+ **`CreateDDBVPCEndPoint`** — ブール値。デフォルトは `true` であり、Dynamo DB VPC エンドポイントを作成する必要があるかどうかを示します。この値を `false` に変更する必要があるのは、VPC に作成済みの DynamoDB エンドポイントがある場合のみです。
+ **`CreateMonitoringEndPoint`** — ブール値。デフォルトは `true` であり、モニタリング VPC エンドポイントを作成する必要があるかどうかを示します。この値を `false` に変更する必要があるのは、VPC に作成済みのモニタリングエンドポイントがある場合のみです。

**ストリームポーラー**
+ **`ApplicationName`** –  通常は、この設定をデフォルト (`NeptuneStream`) のままにしておくことができます。別の名前を使用する場合は、一意である必要があります。
+ **`LambdaMemorySize`** - Lambda ポーラー関数で使用可能なメモリサイズを設定するために使用されます。デフォルト値は 2,048 メガバイトです。
+ **`LambdaRuntime`** – ストリームから項目を取得する Lambda 関数で使用される言語。これは `python3.9` または `java8` どちらにも設定できます。
+ **`LambdaS3Bucket`** — Lambda コードのアーティファクトを含む Amazon S3 バケット。別の Amazon S3 バケットからロードするカスタム Lambda ポーリング関数を使用している場合を除き、空白のままにしておきます。
+ **`LambdaS3Key`** — Lambda コードのアーティファクトに対応する Amazon S3 キー。カスタム Lambda ポーリング関数を使用している場合を除き、空白のままにしておきます。
+ **`LambdaLoggingLevel`** – 通常、デフォルト値 (`INFO`) のままにしておきます。
+ **`ManagedPolicies`** — Lambda 関数の実行に使用する管理ポリシーを一覧表示します。カスタム Lambda ポーリング関数を使用している場合を除き、通常は空白のままにしておきます。
+ **`StreamRecordsHandler`** – Neptune ストリーム内のレコードにカスタムハンドラを使用している場合を除き、通常は空白のままにしておきます。
+ **`StreamRecordsBatchSize`** — ストリームからフェッチされるレコードの最大数。このパラメータを使用して、パフォーマンスを調整できます。デフォルト (`5000`) は、開始に適しています。最大許容値は 10,000 です。数値が大きいほど、ストリームからレコードを読み取るために必要なネットワークの呼び出しは少なくなりますが、レコードを処理するために必要なメモリは多くなります。このパラメータの値を小さくすると、スループットが低下します。
+ **`MaxPollingWaitTime`** — 2 回のポーリング間の最大待機時間 (秒単位)。Neptune ストリームをポーリングするために Lambda ポーラーが呼び出される頻度を決定します。連続ポーリングの場合は、この値を 0 に設定します。最大値は 3,600 秒 (60 分) です。グラフデータの変化速度に応じて、デフォルト値 (60 秒) は開始に適しています。
+ **`MaxPollingInterval`** — 最大連続ポーリング時間 (秒単位)。これを使用して、Lambda ポーリング関数のタイムアウトを設定します。値は 5 秒から 900 秒の範囲でなければなりません。デフォルト値 (600 秒) は、開始に適しています。
+ **`StepFunctionFallbackPeriod`** – ポーラーが待機するステップ関数フォールバック期間単位の数。この数に達すると、ステップ関数が Amazon CloudWatch Events から呼び出されて障害から回復します。デフォルト (5 分) は、開始に適しています。
+ **`StepFunctionFallbackPeriodUnit`** - 直前の `StepFunctionFallbackPeriodUnit` の測定に使用される時間単位 (`minutes`、`hours`、または `days`)。通常は、デフォルト (`minutes`) で十分です。
+ **`StartingCheckpoint`** — ストリームポーラーの開始チェックポイント。デフォルトは `0:0` であり、Neptune ストリームの始めから開始することを意味します。
+ **`StreamPollerInitialState`** – ポーラーの初期状態。デフォルトは `ENABLED` であり、スタック全体の作成が完了するとすぐにストリームの複製が開始されることを意味します。

**Neptune Stream**
+ **`NeptuneStreamEndpoint`** — (*必須*) Neptune ソースストリームのエンドポイント。: これは次の 2 つの形式のいずれかになります。
  + **`https://your DB cluster:port/propertygraph/stream`** (またはそのエイリアス `https://your DB cluster:port/pg/stream`)。
  + **`https://your DB cluster:port/sparql/stream`**.
+ **`Neptune Query Engine`** — Gremlin、openCypher、または SPARQL を選択します。
+ **`IAMAuthEnabledOnSourceStream`** –  Neptune DB クラスターで IAM 認証を使用している場合は、このパラメータを `true` に設定します。
+ **`StreamDBClusterResourceId`** – Neptune DB クラスターで IAM 認証を使用している場合は、このパラメータをクラスターのリソース ID に設定します。リソース ID はクラスター ID と同じではありません。正確には、28 文字の英数字が続く `cluster-` です。Neptune コンソールの **[Cluster Details]** (クラスターの詳細) で確認できます。

**ターゲットの Neptune DB クラスター**
+ **`TargetNeptuneClusterEndpoint`** — ターゲットのバックアップクラスターのクラスターエンドポイント (ホスト名のみ)。

  `TargetNeptuneClusterEndpoint` を指定した場合、`TargetSPARQLUpdateEndpoint` も指定することはできません。
+ **`TargetNeptuneClusterPort`** — ターゲットクラスターのポート番号。

  `TargetSPARQLUpdateEndpoint` を指定した場合、`TargetNeptuneClusterPort` の設定は無視されることに注意してください。
+ **`IAMAuthEnabledOnTargetCluster`** — ターゲットクラスターで IAM 認証を有効にする場合は true に設定します。
+ **`TargetAWSRegion`**   –   などのターゲットバックアップクラスターの AWS リージョン`us-east-1`)。このパラメータは、クロス AWS リージョンレプリケーションの場合と同様に、ターゲットバックアップクラスターのリージョンが Neptune ソースクラスターのリージョンと異なる場合にのみ指定する必要があります。ソースリージョンとターゲットリージョンが同じ場合、このパラメータはオプションです。

  `TargetAWSRegion` 値が [Neptune がサポートする有効な AWS リージョン](limits.md#limits-regions)ではない場合、プロセスは失敗することに注意してください。
+ **`TargetNeptuneDBClusterResourceId`** — *オプション*: これはターゲット DB クラスターで IAM 認証が有効になっている場合にのみ必要です。ターゲットクラスターのリソース ID に設定します。
+ **`SPARQLTripleOnlyMode`** — トリプルオンリーモードを有効にするかどうかを決定するブール型フラグ。トリプルオンリーモードでは、名前付きグラフの複製は行われません。デフォルト値は `false` です。
+ **`TargetSPARQLUpdateEndpoint`** — `https://abc.com/xyz` など、SPARQL 更新のターゲットエンドポイントの URL。このエンドポイントは、クアッドまたはトリプルをサポートする任意の SPARQL ストアでもかまいません。

  `TargetNeptuneClusterEndpoint` を指定した場合、`TargetNeptuneClusterPort` も指定することはできず、`TargetSPARQLUpdateEndpoint` の設定は無視されることに注意してください。
+ **`BlockSparqlReplicationOnBlankNode `** — ブール型フラグ。`true` に設定された場合、SPARQL (RDF) データ内の BlankNode のレプリケーションを停止します。デフォルト値は `false` です。

**アラーム**
+ **`Required to create Cloud watch Alarm`** –  新しいスタックの CloudWatch アラームを作成する場合は、これを `true` に設定します。
+ **`SNS Topic ARN for Cloudwatch Alarm Notifications`** - CloudWatch アラーム通知の送信先の SNS トピック ARN (アラームが有効な場合のみ必要)。
+ **`Email for Alarm Notifications`** - アラーム通知の送信先の E メールアドレス (アラームが有効な場合のみ必要)。

アラーム通知の宛先には、SNS のみ、E メールのみ、または SNS と E メールの両方を追加できます。

## CloudFormation テンプレートを実行する
<a name="streams-consumer-cfn-complete"></a>

これで、次のように、Neptune ストリームコンシューマーアプリケーションインスタンスをプロビジョニングするプロセスを完了できます。

1. スタックの詳細 CloudFormationの指定ページで、**次**へ を選択します。 ****

1. [**Options(オプション)**] ページで、[**Next(次へ)**] を選択します。

1. [**確認**] ページで、 CloudFormation によって IAM リソースが作成されることを確認する最初のチェックボックスをオンにします。新しいスタックの `CAPABILITY_AUTO_EXPAND` を確認する 2 つ目のチェックボックスをオンにします。
**注記**  
`CAPABILITY_AUTO_EXPAND` は、スタックの作成時に事前の確認なしにマクロが展開されることを明示的に確認します。ユーザーは、処理されたテンプレートから変更セットを作成することが多いため、実際にスタックを作成する前にマクロによって行われた変更を確認できます。詳細については、 API リファレンスの CloudFormation [CreateStack](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html) API」を参照してください。 *AWS CloudFormation *

   次に **[作成]** を選択します。

## 最新の Lambda アーティファクトでストリームポーラーを更新するには
<a name="streams-consumer-cfn-update"></a>

最新の Lambda アーティファクトで次のようにストリームポーラーを更新できます。

1. で AWS マネジメントコンソール、メインの親 CloudFormation スタックに移動 CloudFormation して選択します。

1. スタックの**[Update]** (更新) オプションを選択します。

1. **[Replace current template]** (現在のテンプレートを置換) を選択します。

1. テンプレートソースで、**Amazon S3 URL** を選択し、次の S3 URL を入力します。

   ```
   https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_neptune.json
   ```

1.  CloudFormation パラメータを変更せずに**次へ**を選択します。

1. [**Update Stack**] を選択します。

これで、スタックは Lambda アーティファクトを最新のアーティファクトで更新します。