Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

e-conomic/aws-machine-manager.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-machine-manager.js

Build Status Coverage Status Dependency Status

Module for managing machines that are backed by aws instances, and are stored as MongoDB entries for custom per-instance information.

Install

npm install e-conomic/aws-machine-manager.js

Usage

Example of spawning a machine, printing information about its instance, and terminating it:

var AMM = require("./")

var amm = new AMM({
  key: "***",
  secret: "***"
})

amm.spawn({name: "foo"})
  .then(function (machine) {
    console.log("id:", machine.instanceId)
    return machine.getInst()
  })
  .then(function (instance) {
    console.log("instance details:", instance)
  })
  .then(function () {
    return amm.terminate("foo")
  })
  .done()

Mocked

If you rely on this package and want to test against its behavior use the mocked-aws-machine-manager package to pass around fake data.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published