ee-elasticache-autodiscovery

    0.1.1 • Public • Published

    ee-elasticache-autodiscovery

    Retreive Cache Nodes for AWS Elasticache

    installation

    npm ee-elasticache-autodiscovery
    

    build status

    Build Status

    usage

    Constructor

    You need an AWS IAM user which is able to execute the «elasticache:DescribeCacheClusters» action

    var AutoDiscovery = require('ee-elasticache-autodiscovery');
    
    // instantiate with credentials
    var disocvery = new AutoDiscovery({
    	  region 	 	: 'eu-west-1'
    	, accessKey 	: ''
    	, secret 		: ''
    });
    

    getNodes

    lists all nodes which have the status «available» for a given cluster

    disocvery.getNodes('cluster-id', function(err, nodeList){
    
    });
    

    subscribe

    You can subsribe for changes to the cluster. the callback is called as soon a node was removed or a new node was added. The nodes are polled once a minute.

    disocvery.subscribe('cluster-id', function(err, nodeList){
    
    });

    Install

    npm i ee-elasticache-autodiscovery

    DownloadsWeekly Downloads

    0

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • ee