Preparing for system design interviews?  Try bugzed.com →

EC2 Metadata Python Library

JSON →
library 3.0.0 ·python
verified Jun 28, 2026

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.

total hits 9
actors 2 distinct systems
last hit 17d ago AhrefsBot
GPTBot
4
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore