This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
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 betrueorfalse -
config-file-type, which can bes3orfile -
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
fluentdorfluentbit.Required: No
Type: String
Allowed values:
fluentd | fluentbitUpdate requires: Replacement