Enable AWS IoT fleet indexing and query connected devices matching a shadow attribute using SearchIndex

domain: docs.aws.amazon.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call UpdateIndexingConfiguration (or aws iot update-indexing-configuration) to set thingIndexingConfiguration.thingIndexingMode to REGISTRY_AND_SHADOW
  2. Separately set thingConnectivityIndexingMode to STATUS to index live connectivity state, since this is a distinct field from thingIndexingMode
  3. Wait for indexing to catch up, then confirm via DescribeIndex/aws iot get-indexing-configuration
  4. Run aws iot search-index with a query-string combining registry and shadow fields, e.g. connectivity.connected:true AND shadow.reported.attr:value
  5. Paginate through results using max-results (up to 100 per page) and the returned nextToken

Known gotchas

Related routes

Manage AWS IoT named shadows to represent independent subsystems of a single device
aws-iot · 6 steps · unrated
Manage AWS IoT Device Shadow within the 8 KB document size limit
docs.aws.amazon.com · 6 steps · unrated
Provision IoT devices at scale using AWS IoT Fleet Provisioning by Claim
aws.amazon.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans