Table Of Contents


User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . iot ]



Creates an AWS IoT OTAUpdate on a target group of things or groups.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.


--ota-update-id <value>
[--description <value>]
--targets <value>
[--target-selection <value>]
--files <value>
--role-arn <value>
[--additional-parameters <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


--ota-update-id (string)

The ID of the OTA update to be created.

--description (string)

The description of the OTA update.

--targets (list)

The targeted devices to receive OTA updates.


"string" "string" ...

--target-selection (string)

Specifies whether the update will continue to run (CONTINUOUS), or will be complete after all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may also be run on a thing when a change is detected in a target. For example, an update will run on a thing when the thing is added to a target group, even after the update was completed by all things originally in the group. Valid values: CONTINUOUS | SNAPSHOT.

Possible values:


--files (list)

The files to be streamed by the OTA update.

JSON Syntax:

    "fileName": "string",
    "fileVersion": "string",
    "fileSource": {
      "streamId": "string",
      "fileId": integer
    "codeSigning": {
      "awsSignerJobId": "string",
      "customCodeSigning": {
        "signature": {
          "stream": {
            "streamId": "string",
            "fileId": integer
          "inlineDocument": blob
        "certificateChain": {
          "stream": {
            "streamId": "string",
            "fileId": integer
          "certificateName": "string",
          "inlineDocument": "string"
        "hashAlgorithm": "string",
        "signatureAlgorithm": "string"
    "attributes": {"string": "string"

--role-arn (string)

The IAM role that allows access to the AWS IoT Jobs service.

--additional-parameters (map)

A list of additional OTA update parameters which are name-value pairs.

Shorthand Syntax:


JSON Syntax:

{"string": "string"

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.


otaUpdateId -> (string)

The OTA update ID.

awsIotJobId -> (string)

The AWS IoT job ID associated with the OTA update.

otaUpdateArn -> (string)

The OTA update ARN.

awsIotJobArn -> (string)

The AWS IoT job ARN associated with the OTA update.

otaUpdateStatus -> (string)

The OTA update status.