Configure the AWS IoT Core device registry for the facility simulator
This section describes how to set up your AWS IoT Core workspace so the facility simulator can use it and generate devices ("Things") dynamically.
- Create an IAM user (for more information , refer to Creating an IAM user in your AWS account).
- Create an access key security credential for the user and save the ID and key values.
- Add the ID and key values to the secret manager (refer to configure user-supplied secrets).
- Create an IAM user group and add your user to it.
Add the following permissions for the user group:
"iot:CreateThing", "iot:DescribeThing", "iot:CreateThingGroup", "iot:Subscribe", "iot:AddThingToThingGroup", "iot:ListThingsInThingGroup", "iot:ListThings", "iot:ListThingGroups", "iot:Publish"
- Create a 'Republish to AWS Iot topic' message routing rule that forwards incoming messages to an
Simple Notification Service (SNS)
topic. The SNS topic will in turn push messages into anSimple Queue Service (SQS)
queue for downstream consumption.- Go to AWS IoT Core and create a new message routing rule.
- Set the SQL statement to the following:
SELECT * FROM '<facility_name>/devices/#'
- Create an
SNS
rule action and create anSNS
topic for it.
- Create an
SQS
queue to receive the telemetries and subscribe the queue to the newSNS
topic.