aws-ecs-metadata-node
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

A library for nodejs

aws-ecs-metadata-node is a NodeJS library to fetch and retrieve the meta data of a ECS service. There's also another version built for golang by Bruno Scheufler

Installation

Use the package manager npm to install aws-ecs-metadata-node.

npm install aws-ecs-metadata-node

or with yarn:

yarn add aws-ecs-metadata-node

Usage

import { fetchMetaData as v3 } from 'aws-ecs-metadata-node/lib/v3';
import { fetchMetaData as v4 } from 'aws-ecs-metadata-node/lib/v4';

// to fetch from version 3 endpoint
v3().then((res) => {
	console.log(res);
});

// to fetch from version 4 endpoint
v4().then((res) => {
	console.log(res);
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Package Sidebar

Install

npm i aws-ecs-metadata-node

Weekly Downloads

205

Version

1.1.1

License

MIT

Unpacked Size

13.5 kB

Total Files

18

Last publish

Collaborators

  • aientech