This page describes how to link your ThingSpace account to your AWS account. When you link the accounts, ThingSpace registers your ThingSpace devices as “things” in your AWS account, and streams data from those devices to the AWS account. You can easily use that data in your AWS-based IoT applications.
A Verizon BillingAccount with CAS devices previously on boarded into it
Ability to create the access (user token) and the session (VZ M2M token) to execute the ThingSpace API
API reference documentation: https://thingspace.verizon.com/resources/documentation/cloudconnector/API_Reference/
Perform the Query Subscription and Query Target API calls to make sure that there are no existing subscriptions and/or targets associated with the Verizon BillingAccountId
Delete any previously created subscription on the Verizon BillingAccount
Delete any previously created targets on the Verizon BillingAccount
Linking a ThingSpace account with an AWS account requires a few steps in both systems:
ThingSpace uses external identifiers to increase security when sending data to AWS. After creating an external identifier, you will add it to the IAM role in AWS and to the target in ThingSpace. You can create different external IDs if you are using multiple targets to stream to AWS, or you can use the same external ID with all AIM roles and targets.
Use the POST /targets/actions/newextid endpoint to create an external ID.
Follow these steps to allow ThingSpace to send device data to your AWS account.
AWS displays the role summary page. You will need the Role ARN from that page when you create a target in ThingSpace.
Follow these steps to configure ThingSpace to send device data to your AWS account.
ts.event
to receive all device data. Alternatively, you can set it to ts.event.diagnostics or ts.event.security to only receive events of those specific types.After you have set up AWS and ThingSpace as described on this page, ThingSpace registers devices in the account as “things” in your AWS account, and streams data from those devices to the AWS account.
{
"reported": {
"temperature": "20.7",
"humidity": "36",
"light": "0",
"pressure": "896",
"battery": "100",
"acceleration": {
"x": "0.0133",
"y": "-1.0394",
"z": "-0.0328"
},
"orientation": {
"motionInX": "268.0",
"motionInY": "0.0",
"motionInZ": "0.0"
},
"signalStrength": "-58"
}
}
}
When you add new devices to your ThingSpace account, ThingSpace will register them with AWS and stream data from them as defined by your subscriptions.