github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/aws/d/ecs_container_definition.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_ecs_container_definition" 4 sidebar_current: "docs-aws-datasource-ecs-container-definition" 5 description: |- 6 Provides details about a single container within an ecs task definition 7 --- 8 9 # aws\_ecs\_container\_definition 10 11 The ECS container definition data source allows access to details of 12 a specific container within an AWS ECS service. 13 14 ## Example Usage 15 16 ``` 17 data "aws_ecs_container_definition" "ecs-mongo" { 18 task_definition = "${aws_ecs_task_definition.mongo.id}" 19 container_name = "mongodb" 20 } 21 ``` 22 23 ## Argument Reference 24 25 The following arguments are supported: 26 27 * `task_definition` - (Required) The ARN of the task definition which contains the container 28 * `container_name` - (Required) The name of the container definition 29 30 ## Attributes Reference 31 32 The following attributes are exported: 33 34 * `image` - The docker image in use, including the digest 35 * `image_digest` - The digest of the docker image in use 36 * `cpu` - The CPU limit for this container definition 37 * `memory` - The memory limit for this container definition 38 * `memory_reservation` - The soft limit (in MiB) of memory to reserve for the container. When system memory is under contention, Docker attempts to keep the container memory to this soft limit 39 * `environment` - The environment in use 40 * `disable_networking` - Indicator if networking is disabled 41 * `docker_labels` - Set docker labels