EC2 Metadata Python Library
JSON →ec2-metadata is a Python library that provides an easy, cached interface to query the EC2 Instance Metadata Service (IMDS). It supports IMDSv2 exclusively and is designed for use within EC2 instances to retrieve details like instance ID, AMI ID, region, and more. The current version is 3.0.0, and it is actively maintained.
Traffic · last 30 days ↓67% vs prev 7d
total hits 14
actors 6 distinct systems
last hit 1d ago Googlebot
top countries 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇸🇬 Singapore · 🇮🇳 India
Resources
API endpoints
full doc /v1/registry/ec2-metadata
compatibility /v1/registry/ec2-metadata/compatibility