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:
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 betrue
orfalse
-
config-file-type
, which can bes3
orfile
-
config-file-value
, which is either an S3 ARN or a file path
Required: No
Type: Object of String
Pattern:
.{1,}
Update requires: Replacement
-
Type
-
The log router to use. The valid values are
fluentd
orfluentbit
.Required: No
Type: String
Allowed values:
fluentd | fluentbit
Update requires: Replacement