Aws.ecsDescribeTaskDefinition()

Describe an ECS task definition

Usage

Hover over inputs/exits for more info.

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


// Describe an ECS task definition

Aws.ecsDescribeTaskDefinition({

accessKeyId: 'akid',

secretAccessKey: 'secret',

taskDefinition: 'arn:aws:ecs:us-west-2:595131534720:task-definition/my-cool-task',

region: 'us-west-2',

apiVersion: '2014-11-13',

}).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'
taskDefinition required

The ECS task definition describe

'arn:aws:ecs:us-west-2:595131534720:task-definition/my-cool-task'
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'

Exits

error

An unexpected error occurred.

success

OK.

{ taskDefinition: 
   { containerDefinitions: 
      [ { cpu: 1,
          environment: [ { name: 'ENV_VAR', value: 'some value' } ],
          essential: true,
          image: 'myDockerImage',
          memory: 256,
          mountPoints: [],
          name: 'microservices',
          portMappings: [ { containerPort: 1337, hostPort: 0 } ],
          volumesFrom: [] } ],
     family: 'my-cool-task',
     revision: 1,
     taskDefinitionArn: 'arn:aws:ecs:us-west-2:595131534720:task-definition/my-cool-task',
     volumes: [] } }