mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-12 16:00:25 -04:00
* docs: update AWS examples. Disntinguish between alb and alb listener datasource * more hcl highlighting * more hcl * fix missing end quote in docs * docs: finish updates to AWS data source highlights Also updates layout to distinguish some resources
1.4 KiB
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 containercontainer_name- (Required) The name of the container definition
Attributes Reference
The following attributes are exported:
image- The docker image in use, including the digestimage_digest- The digest of the docker image in usecpu- The CPU limit for this container definitionmemory- The memory limit for this container definitionmemory_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 limitenvironment- The environment in usedisable_networking- Indicator if networking is disableddocker_labels- Set docker labels