AWS::ECS::TaskDefinition FirelensConfiguration - AWS CloudFormation

AWS::ECS::TaskDefinition FirelensConfiguration

The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom Log Routing in the Amazon Elastic Container Service Developer Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Options" : {Key : Value, ...}, "Type" : String }

YAML

Options: Key : Value Type: String

Properties

Options

The options to use when configuring the log router. This field is optional and can be used to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event.

If specified, valid option keys are:

  • enable-ecs-log-metadata, which can be true or false

  • config-file-type, which can be s3 or file

  • config-file-value, which is either an S3 ARN or a file path

Required: No

Type: Map of String

Update requires: Replacement

Type

The log router to use. The valid values are fluentd or fluentbit.

Required: Yes

Type: String

Allowed Values: fluentbit | fluentd

Update requires: Replacement