

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

# ランタイム (Greengrass nucleus または Greengrass nucleus lite) を選択します。
<a name="choose-runtime"></a>

Greengrass nucleus と Greengrass nucleus lite のどちらを選択するかは、デバイスリソースと Lambda 関数が使用する機能によって異なります。次の表のイベントソースの互換性マトリックスを確認し、決定フロー図を使用して移行に適したランタイムを決定します。Greengrass nucleus と Greengrass nucleus lite の機能の詳細な比較については、[「ランタイムの選択](choosing-your-runtime.md)」を参照してください。

## イベントソースの互換性マトリックス
<a name="event-source-compatibility"></a>

では AWS IoT Greengrass V1、Lambda 関数は、他の Lambda 関数、ローカルシャドウサービス AWS IoT Core、クライアントデバイス、コネクタの 5 種類のイベントソースと通信できます。次の表は、各 V2 ランタイムでサポートされているイベントソースを示しています。

注: イベントソース名は AWS IoT Greengrass V1 用語を使用します。V2 に移行すると、Lambda 関数は Lambda コンポーネント (Greengrass nucleus でのみサポート) または汎用コンポーネント (Greengrass nucleus と Greengrass nucleus lite の両方でサポート) に変換されます。


| イベントソース | Greengrass nucleus | Greengrass nucleus lite | 
| --- | --- | --- | 
|  グループ内の他の Lambda 関数  |  ✓ (Lambda コンポーネントと汎用コンポーネント)  |  ✓ (汎用コンポーネントのみ)  | 
|  AWS IoT Core サービス  |  ✓  |  ✓  | 
|  ローカルシャドウサービス  |  ✓  |  ✗  | 
|  クライアントデバイス  |  ✓  |  ✗  | 
|  コネクタ  |  ✓  |  ✗  | 

## ランタイム選択決定フロー
<a name="runtime-selection-decision-flow"></a>

![\[Greengrass nucleus と Greengrass nucleus lite のどちらかを選択するための決定フロー図。\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/images/runtime-selection-decision-flow.png)


### 注意事項
<a name="runtime-selection-notes"></a>

1. Greengrass nucleus lite の要件と互換性の詳細については、[「Greengrass nucleus lite](greengrass-nucleus-lite-component.md)」を参照してください。Greengrass nucleus lite には最低 5 MB の RAM が必要で、リソースに制約のあるデバイス用に設計されています。

1. 決定フローは、一般的なユースケースに基づくガイダンスを提供しますが、厳密な要件ではありません。リソースに制約のあるデバイスとリソースに十分なデバイスの両方を持つお客様は、一部のデバイスがいずれかのランタイムをサポートできる場合でも、運用を簡素化するためにすべてのデバイスで単一のランタイムを使用することを選択できます。

## 次の手順
<a name="next-steps-runtime"></a>

ランタイムを選択したら、テストデバイスをセットアップします。
+ Greengrass nucleus ランタイムの場合: V[V2 で V1 アプリケーションをテストする新しいデバイスをセットアップする](set-up-v2-test-device.md)
+ Greengrass nucleus lite ランタイムの場合: [Greengrass nucleus lite を使用して新しいデバイスをセットアップ](set-up-v2-test-device-lite.md)する