1.1.1 • Published 3 years ago

aws-ecs-metadata-node v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago