Friday 11 May 2018

Confused about function output ...

When I do the below I get the needed list of clusters ...var ecs = new AWS.ECS({'region':'us-east-2'}); var params = {}; var results = ecs.listClusters(params,function(err,data){ console.log(data); }); When I do the below ...I get a whole dump of info that has nothing to do with the data ...var ecs = new AWS.ECS({'region':'us-east-2'}); var params = {}; var results = ecs.listClusters(params,function(err,data){ return data; }); I'm totally confused ...

Submitted May 11, 2018 at 08:17PM by sethrei

No comments:

Post a Comment