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

Amazon EC2 Container Service TaskDefinition ContainerDefinitions LogConfiguration

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

Syntax

JSON

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

YAML

Copy
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 EC2 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.