Skip to main content
When passing the container definition into a task definition, use jsonencode([module.ecs_container_definition.container_definition]) rather than the container_definition_json output.

Container Definition

map
The container definition as a Terraform map. Use jsonencode([module.name.container_definition]) when passing to a task definition.
string
The container definition as a JSON-encoded string. Note: prefer using jsonencode([module.name.container_definition]) over this output when passing into a task definition.

CloudWatch Logging

string
Name of the CloudWatch log group created for this container.
string
ARN of the CloudWatch log group.