AWS IoT

Topic

$aws/things/kitsdemo/shadow/update

/ - delimiter

kits/ventilations/fan1

Thing Shadow Service

{
  "state": {
    "reported": {
      "temp": "11"
    }
  }
}
{
  "state": {
    "reported": {
      "temp": "11"
    }
  }
}
{
  "state": {
    "desired": {
      "temp": "5"
    }
  }
}
{
  "state": {
    "reported": {
      "temp": "10"
    },
    "desired": null
  }
}
{
  "state": {
    "desired": {
      "temp": "5"
    },
    "reported": {
      "temp": "11"
    }
  }
}
{
  "state": {
    "reported": {
      "temp": "10"
    }
  }
}

Client Certificates

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "iot:Connect"
      ],
      "Resource": [
        "arn:aws:iot:eu-west-1:849037323980:client/kitsdemo"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "iot:Subscribe"
      ],
      "Resource": [
        "arn:aws:iot:eu-west-1:849037323980:topicfilter/$aws/things/${iot:ClientId}/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "iot:Publish",
        "iot:Receive"
      ],
      "Resource": [
        "arn:aws:iot:eu-west-1:849037323980:topic/$aws/things/${iot:ClientId}/*"
      ]
    }
  ]
}

Topic Rule

SELECT * as data, clientid() as thingName FROM '$aws/things/+/shadow/update'

...code

Serverless

Device

&&

Protocols

What else is there...

  • Jobs
  • Fleet indexing
  • Device defender
  • Greengrass
  • Monitoring

AWS IoT

By Gustav Jorlöv

AWS IoT

  • 216