Skip to content
v2.273.0

FirelensOptions Struct ​

The options for firelens log router https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef-customconfig.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const firelensOptions: ecs.FirelensOptions = {
  configFileType: ecs.FirelensConfigFileType.S3,
  configFileValue: 'configFileValue',
  enableECSLogMetadata: false,
};

Properties ​

configFileTypeFirelensConfigFileTypeconfig_file_typeFirelensConfigFileTypeconfigFileTypeFirelensConfigFileTypeConfigFileTypeFirelensConfigFileTypeConfigFileTypeFirelensConfigFileType= determined by checking configFil…#
Custom configuration file, s3 or file.

Both configFileType and configFileValue must be used together to define a custom configuration source.

default

Default: determined by checking configFileValue with S3 ARN.

configFileValuestringconfig_file_valuestrconfigFileValueStringConfigFileValuestringConfigFileValue*string= no config file value#
Custom configuration file, S3 ARN or a file path Both configFileType and configFileValue must be used together to define a custom configuration source.
enableECSLogMetadatabooleanenable_ecs_log_metadataboolenableECSLogMetadataBooleanEnableECSLogMetadataboolEnableECSLogMetadata*bool= true#
By default, Amazon ECS adds additional fields in your log entries that help identify the source of the logs.

You can disable this action by setting enable-ecs-log-metadata to false.