#instance #metadata #ec2 #fetching #aws #api

bin+lib ec2_instance_metadata

A crate for fetching AWS EC2 instance metadata

7 releases

0.3.0 Aug 25, 2020
0.2.2 Jul 28, 2020
0.2.0 Jun 18, 2020
0.1.2 Apr 29, 2020

#22 in #ec2

Download history 552/week @ 2024-07-28 677/week @ 2024-08-04 469/week @ 2024-08-11 485/week @ 2024-08-18 496/week @ 2024-08-25 517/week @ 2024-09-01 511/week @ 2024-09-08 543/week @ 2024-09-15 624/week @ 2024-09-22 1108/week @ 2024-09-29 558/week @ 2024-10-06 476/week @ 2024-10-13 312/week @ 2024-10-20 448/week @ 2024-10-27 761/week @ 2024-11-03 632/week @ 2024-11-10

2,154 downloads per month
Used in 7 crates (via quickwit-storage)

MIT license

12KB
238 lines

EC2 Instance Metadata Crate

This crate provides functionality for getting the Instance Metadata from an EC2 instance. This API makes use of the v2 API to remain future facing.

Installing/Using

Add the following line to your Cargo.toml:

ec2_instance_metadata = "0.2"

Example Code:

extern crate ec2_instance_metadata;
let client = ec2_instance_metadata::InstanceMetadataClient::new();
let metadata = client.get().unwrap();

Dependencies

~2.8–4MB
~71K SLoC