AWS::ECS::TaskDefinition FirelensConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.


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


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


Options: Key: Value Type: String



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: Object of String

Pattern: .{1,}

Update requires: Replacement


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

Required: No

Type: String

Allowed values: fluentd | fluentbit

Update requires: Replacement