跳至内容

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

已提问 4 年前432 查看次数

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
专家

已回答 4 年前

专家

已审核 2 年前

  • 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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。