Upload data using AWS IoT
Jobs
Important
Access to certain AWS IoT FleetWise features is currently gated. For more information, see AWS Region and feature availability in AWS IoT FleetWise.
With AWS IoT Jobs, you can configure campaigns to upload stored vehicle data to the cloud whenever you need it.
To create a job document for your campaign
-
Use the following example to create a job document for the campaign. A job document is a .json file that contains information about vehicles or fleets required to perform a job. For more information on creating job document, see Create and manage jobs by using the AWS CLI in the AWS IoT Developer Guide.
To request that only one vehicle uploads data, set the job target to the AWS IoT thing that's associated with the vehicle. To request that multiple vehicles (in the same campaign) upload data, create a thing group of all things corresponding with the vehicles, and then set the job target to the thing group.
{ "version": "1.0", "parameters": { "campaignArn": ${aws:iot:parameter:
campaignArn
}, "endTime": ${aws:iot:parameter:endTime
} } }-
Replace
CampaignArn
with the Amazon Resource Name (ARN) of a campaign in the same Region and account. The campaign ARN is required. -
(Optional) Replace
endTime
with the timestamp of data collected on the vehicle in ISO 8601 UTC format (without milliseconds). For example,2024-03-05T23:00:00Z
. The timestamp is exclusive and determines the last datapoint to be uploaded. If you omitendTime
, the Edge Agent software continues to upload until all of a campaign's stored data is uploaded. After all data is uploaded, it updates the job execution status toSUCCEEDED
. The job's state updates toCOMPLETED
.
-
To create a job using a managed job template
-
Choose IoT-IoTFleetWise-CollectCampaignData from the list of managed templates. For more information, see Create a job from AWS managed templates in the AWS IoT Developer Guide.
-
The managed template has the
CampaignArn
andendTime
parameters.Replace
CampaignArn
with the Amazon Resource Name (ARN) of a campaign in the same Region and account. The campaign ARN is required.(Optional) Replace
endTime
with the timestamp of data collected on the vehicle in ISO 8601 UTC format (without milliseconds). For example,2024-03-05T23:00:00Z
. The timestamp is exclusive and determines the last datapoint to be uploaded. If you omitendTime
, the Edge Agent software continues to upload until all of a campaign's stored data is uploaded. After all data is uploaded, it updates the job execution status toSUCCEEDED
. The job's state updates toCOMPLETED
.
For related troubleshooting topics, see Store and forward issues.
For more information on AWS IoT Jobs, see Jobs in the AWS IoT Developer Guide.