Files
opentf/website/source/docs/providers/aws/d/ecs_container_definition.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.4 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_ecs_container_definition docs-aws-datasource-ecs-container-definition Provides details about a single container within an ecs task definition

aws_ecs_container_definition

The ECS container definition data source allows access to details of a specific container within an AWS ECS service.

Example Usage

data "aws_ecs_container_definition" "ecs-mongo" {
  task_definition = "${aws_ecs_task_definition.mongo.id}"
  container_name  = "mongodb"
}

Argument Reference

The following arguments are supported:

  • task_definition - (Required) The ARN of the task definition which contains the container
  • container_name - (Required) The name of the container definition

Attributes Reference

The following attributes are exported:

  • image - The docker image in use, including the digest
  • image_digest - The digest of the docker image in use
  • cpu - The CPU limit for this container definition
  • memory - The memory limit for this container definition
  • 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
  • environment - The environment in use
  • disable_networking - Indicator if networking is disabled
  • docker_labels - Set docker labels