Author: Henry

Greengrass: TES responded with status code: 400 and body: { “Message” : “Your AWS IoT Certificate Needs to be deployed to a deployment group.” }

It is strange to see this error in the device log /greengrass/ggc/var/log/system/localwatch/localwatch.log. It seems this issue is related to the permission/ credentials settings. After I update the Group Role (AWS IoT -> Classic V1 -> Group -> Settings) and re-deploy the group, this issue is gone.

Read More »

AWS IoT Core: Maximum 50 subscriptions per connection?

As you may know that “AWS IoT Core supports 50 subscriptions per connection. AWS IoT Core might reject subscription requests on the same connection in excess of this amount and the connection is closed. Clients should validate the SUBACK message to ensure that their subscription requests have been successfully processed.” However, if you didn’t check the SUBACK message, it could…

Read More »

I want to specify multiple origins/ domains in CORS headers in API Gateway

As you may know, API GW follows CORS specifications which are defined by Mozilla. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin Due to CORS specification, the server cannot respond with multiple domains in a single Access-Control-Allow-Origin header unfortunately. For REST API to have multiple domains in CORS, a work around could be to create an API with a Lambda proxy integration. So that we can assign…

Read More »