Accessing the Metadata and User Data of a VM

You can get information about the configuration of virtual machine (VM) by accessing metadata and user data from within the VM itself.

This action enables you to access information that would otherwise be inaccessible inside the VM.

You can also get this information from outside the VM. For more information, see Getting Information About Your VMs.

Accessing the User Data of a VM

Before you begin: Access the VM whose user data you want to access. For more information, see Accessing Your VMs.

To access the user data of a VM, type the following command in a terminal of the VM:

Request sample
$ curl http://169.254.169.254/latest/user-data

You can also type the address http://169.254.169.254/latest/user-data in a web browser.

The user data of the VM appears.

Related Pages