How can I find the Instance ID referred to by Cloud-Init as provided by OpenStack?
1 Answer
You can run,
cloud-init query instance_id
Or, you can find the INSTANCE_ID
, by looking in this file,
/var/lib/cloud/data/instance-id
Or, this one
/run/cloud-init/.instance-id