AWS Fundamentals Logo
AWS Fundamentals
AWS::IoT::Command

IoT Command

Represents the resource definition of AWS IoT Command.

Properties

14 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
CommandId
string
RequiredCreate-only
CreatedAt
string
Deprecated
boolean
Description
string
DisplayName
string
LastUpdatedAt
string
Write-only
MandatoryParameters
array
Namespace
string
Payload
CommandPayload
PayloadTemplate
string
Create-only
PendingDeletion
boolean
Preprocessor
CommandPreprocessor
Create-only
RoleArn
string
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
CommandArnstringThe Amazon Resource Name (ARN) of the command.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoT::Command

Resources:
  MyResource:
    Type: AWS::IoT::Command
    Properties:
      CommandId: "my-commandid"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

iam:PassRoleiot:CreateCommandiot:TagResource

read

iot:GetCommandiot:ListTagsForResource

update

iam:PassRoleiot:UpdateCommandiot:GetCommandiot:TagResourceiot:UntagResourceiot:ListTagsForResource

delete

iot:GetCommandiot:UpdateCommandiot:DeleteCommand

list

iot:ListCommands

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceIoT
Properties15
Required1
TaggingSupported
Primary IDCommandId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

CommandIdPayloadTemplatePreprocessor

External Links