Skip to content

cloud-inventory

Inventory cloud metadata

Collect internal API information about a cloud instance

Requires cloud/provider to be set correctly. Cloud provisioners should set this field automatically. You can use cloud-detect-meta-api to discover the cloud/provider by inspection.

If cloud/provider is not set then does nothing.

Depending on the cloud provider, sets discovered cloud/* data from the cloud's discovery API including:

  • public-ipv4
  • public-hostname
  • instance-type
  • placement/availability-zone

Note

An unreachable meta api, a failed lookup, or a reported instance-id that does not match cloud/instance-id is logged as a warning and does not fail the task.

Objects that Reference cloud-inventory

Objects used by cloud-inventory