AWS IoT Core Connector

Connecting AWS IoT Core to a Waylay Broker


  • Access to AWS platform and IoT Core
  • Administrator access
  • IoT connected device
  • Waylay Broker url

Main building blocks of this integration are presented below: alt text


Say your organisation has some devices that are connected in AWS IoT Core and the devices are configured to push their telemetry data to a Topic or multiple Topics. How does one connect this data on these topic to a Waylay Environment for creating rules and templates? The service connector allow you to bridge the connection between AWS IoT Core and your Waylay environment fairly easy!

All one needs to do is to download this service connector as a Docker image and run in it with a file that contains the environment variables.

Create a file and insert the configurable variables listed below.

The command for running the docker is as followed:

docker run -p 3000:3000 --rm --name connector --env-file=PathToFile/connectorFile awsIoTConnectorDockerImage

Configuration of AWS IoT Core Connector

The following environment variables have to be configured:

Var Default Description
PORT 3000 Port
PARSE_MODE Flattening JSON objects or not (value can be ‘flat’ or not filled in)
AWS_TOPICS List of Topics to connect to (seperated by ;)
AWS_ENDPOINT AWS IoT Core endpoint url
AWS_ACCESS_KEY_ID Id of your access key
AWS_SECRET_ACCESS_KEY Value of your access key
AWS_REGION Region of your aws platform
TENANT_ID TenantId of your organisation
APPLICATION_SECRET Secret of your application
APPLICATION_ID Id of your application
AUTH_URL Waylay accounts url (Same URL as configured in Broker)
BROKER_URL URL of your broker


This will convert nested JSON objects into flat (key, value) objects so that all metric are stored in the timeseries database.

value : PARSE_MODE='flat' or not specified

Note: Messages flowing trough AWS IoT Core must contain a specified ‘resource’ key that will be stored in the Waylay Environment.


{ "resource": "resource1", "temperature": 12, "humidity": 24 }

Note: If no resource key is present the message will be ignored.


List of AWS Topics in IoT Core, if the list contains more than 1 it must be seperated by ; Example:



Endpoint of your AWS IoT Core. Can be found in:

Console Home -> Services (IoT Core) -> Settings (bottom left) -> Endpoint


Set of access keys that an administrator can create for a user. Access Keys can be created in the AWS Console.

Console Home -> Services (IAM) -> Users -> Security Credentials -> Create access key


Name of your AWS Region. Example: