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

asked a year ago179 views
1 Answer
1
Accepted Answer

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
EXPERT
answered a year ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions