Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 355 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 355 Bytes

@plato/aws-meta

Introspects AWS EC2 and ECS metadata from running containers.

Usage

import { getInstanceIPV4 } from "@plato/aws-meta";

try {
	const ip = await getInstanceIPV4();
	// Do something with "ip"
} catch (e) {
	// Failed to get local IP
}