Skip to content

Introspects information for containers running inside of ECS.

License

Notifications You must be signed in to change notification settings

plato-app/es-aws-meta

Repository files navigation

@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
}