Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon Elastic Container Service TaskDefinition LogConfiguration

LogConfiguration is a property of the Amazon Elastic Container Service TaskDefinition ContainerDefinition property that configures a custom log driver for an Amazon Elastic Container Service (Amazon ECS) container.

Syntax

JSON

{ "LogDriver" : String, "Options" : { String:String, ... } }

YAML

LogDriver: String Options: String: String

Properties

LogDriver

The log driver to use for the container. This parameter requires that your container instance uses Docker Remote API Version 1.18 or greater. For more information, see the logDriver content for the LogConfiguration data type in the Amazon Elastic Container Service API Reference.

Required: Yes

Type: String

Options

The configuration options to send to the log driver. This parameter requires that your container instance uses Docker Remote API Version 1.18 or greater.

Required: No

Type: Key-value pairs, with the option name as the key and the option value as the value.

On this page: