Aws.ecsDescribeContainerInstances()

Describe Amazon EC2 Container Service container instances

Usage

Hover over inputs/exits for more info.

var Aws = require('machinepack-aws');


// Describe Amazon EC2 Container Service container instances

Aws.ecsDescribeContainerInstances({

accessKeyId: 'akid',

secretAccessKey: 'secret',

containerInstances: [ '98950f3c-7347-4249-99cb-168832a1b8f2' ],

region: 'us-west-2',

apiVersion: '2014-11-13',

cluster: 'default',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

accessKeyId required

AWS IAM user access key id.

'akid'
secretAccessKey required

AWS IAM user secret access key

'secret'
containerInstances required

Container instance UUIDs or full Amazon Resource Name (ARN) entries to describe.

[ '98950f3c-7347-4249-99cb-168832a1b8f2' ]
region

Which region to use. Defaults to us-west-2

'us-west-2'
apiVersion

Which api version to use. Defaults to: latest

'2014-11-13'
cluster

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances you want to describe. Defaults to `default`.

'default'

Exits

error

An unexpected error occurred.

success

OK.

{ containerInstances: 
   [ { agentConnected: true,
       containerInstanceArn: 'arn:aws:ecs:us-west-2:575431834730:container-instance/98950f3c-7347-4249-99cb-168832a1b8f2',
       ec2InstanceId: 'i-783acf77',
       registeredResources: 
        [ { doubleValue: 0,
            integerValue: 4096,
            longValue: 0,
            name: 'CPU',
            type: 'INTEGER' } ],
       remainingResources: 
        [ { doubleValue: 0,
            integerValue: 4096,
            longValue: 0,
            name: 'CPU',
            type: 'INTEGER' } ],
       status: 'ACTIVE' } ],
  failures: [] }