Welcome to the official documentation for the Cloud Metadata Service. This service provides metadata about your cloud instances, including instance ID, IP addresses, and user data.
To start using the Cloud Metadata Service, make HTTP requests to the following endpoints:
GET /latest/meta-data/instance-id
GET /latest/meta-data/public-ipv4
GET /latest/user-data
Retrieve metadata about your cloud instance.
GET /latest/meta-data/instance-id
Response:
i-0abcdef1234567890
Retrieve the public IPv4 address of your instance.
GET /latest/meta-data/public-ipv4
Response:
54.123.45.67
Retrieve user data passed to the instance during launch.
GET /latest/user-data
Response:
#!/bin/bash
echo "Hello, this is user data!"
If you receive a 404 error, ensure that you are using the correct endpoint. For example:
GET /latest/meta-data/instance-id
If the service is unavailable, please try again later. If the issue persists, contact support.
For additional help, please contact our support team at [email protected].