AWS IoT PubSubSdk Workshop: GDK tool fails in ca-central-1

0

I am running this workshop environment (C9, etc) in ca-central-1 but 'gdk component build' fails for this region.

An inclusive list is referenced in the error:

Error: 'ca-central-1' is not one of ['us-east-2', 'us-east-1', 'us-west-2', 'ap-south-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'cn-north-1', 'eu-central-1', 'eu-west-1', 'eu-west-2', 'us-gov-west-1', 'us-gov-east-1']. 
  • Is there a simple fix, or is this bound into the GDK tool?

AWS Workshop: Build a Distributed IoT Application with the AWS IoT Greengrass PubSub SDK

質問済み 1年前185ビュー
1回答
1
承認された回答

Hi,

it seems that the GDK does not yet include the ca-central-1 region. Although Greengrass endpoints are available in ca-central-1. You can create an issue at GitHub or you can try to add ca-central-1 in gdk/static/config_schema.json. There is a section "description": "AWS regions supported by AWS IoT Greengrassv2. Must be one of the enum values.". But ca-central-1 is missing.

Cheers,
Philipp

AWS
エキスパート
回答済み 1年前
  • Yes, cloning the github gdk, making the edit to the list as per above, and running local pip install solved the issue. One may have to uninstall first ...

    python3 pip uninstall gdk python3 -m pip install --user ./aws-greengrass-gdk-cli

    BTW, the current gdk clone now includes: ca-central-1

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ