Instance identity documents for Amazon EC2 instances - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Instance identity documents for Amazon EC2 instances

Each instance that you launch has an instance identity document that provides information about the instance itself. You can use the instance identity document to validate the attributes of the instance.

The instance identity document is generated when the instance is stopped and started, restarted, or launched. You can access the instance identity document for an instance through the Instance Metadata Service (IMDS). For the instructions, see Retrieve the instance identity document.

The instance identity document uses plaintext JSON format. It includes the following information.

Data Description
accountId

The ID of the Amazon account that launched the instance.

architecture

The architecture of the AMI used to launch the instance (i386 | x86_64 | arm64).

availabilityZone

The Availability Zone in which the instance is running.

billingProducts

The billing products of the instance.

devpayProductCodes

Deprecated.

imageId

The ID of the AMI used to launch the instance.

instanceId

The ID of the instance.

instanceType

The instance type of the instance.

kernelId

The ID of the kernel associated with the instance, if applicable.

marketplaceProductCodes

The Amazon Web Services Marketplace product code of the AMI used to launch the instance.

pendingTime

The date and time that the instance was launched.

privateIp

The private IPv4 address of the instance.

ramdiskId

The ID of the RAM disk associated with the instance, if applicable.

region

The Region in which the instance is running.

version

The version of the instance identity document format.