Skip to content

Commit

Permalink
Merge pull request #2609 from CpuID/cpuid_ecs_task_definition_docs
Browse files Browse the repository at this point in the history
Updated docs for aws_ecs_task_definition, to avoid confusion.
  • Loading branch information
radeksimko committed Jul 3, 2015
2 parents 03dc6c4 + bba53d4 commit 8d6e2eb
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,34 @@ resource "aws_ecs_task_definition" "jenkins" {
}
```

### task-definitions/jenkins.json

The below would be passed into the `container_definitions` attribute. This is a small subset of the available parameters, see the [AWS docs](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) for a full list.

```
[
{
"name": "jenkins",
"image": "jenkins",
"cpu": 10,
"memory": 500,
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
]
}
]
```

## Argument Reference

The following arguments are supported:

* `family` - (Required) The family, unique name for your task definition.
* `container_definitions` - (Required) A list of container definitions in JSON format. See [AWS docs](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) for syntax.
* `container_definitions` - (Required) A list of container definitions in JSON format. See [AWS docs](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/create-task-definition.html) for syntax. Note, you only need the containerDefinitions array, not the parent hash including the family and volumes keys.
* `volume` - (Optional) A volume block. Volumes documented below.

Volumes support the following:
Expand Down

0 comments on commit 8d6e2eb

Please sign in to comment.