ecs_composex.ecs.ecs_firelens package

Subpackages

Submodules

ecs_composex.ecs.ecs_firelens.firelens_advanced_rendered_settings module

ecs_composex.ecs.ecs_firelens.firelens_advanced_rendered_settings. finalize_firelens_container_shorthands ( family , advanced_config ) [source]

Checks the FirelensConfiguration.Options settings set on each services of the task family. If it finds settings, updates the default settings with the new value. First service in the family to have the settings win. There should be only one service with the x-logging.Firelens config set not to overlap.

Return type :

None

ecs_composex.ecs.ecs_firelens.firelens_advanced_rendered_settings. handle_firelens_advanced_settings ( family , settings ) [source]

Handles x-logging.FireLens.Advanced.Rendered

Parameters :
Return type :

ecs_composex.ecs.ecs_firelens.ecs_firelens_advanced.FireLensFamilyManagedConfiguration

ecs_composex.ecs.ecs_firelens.firelens_logger_helpers module

ecs_composex.ecs.ecs_firelens.firelens_logger_helpers. handle_cloudwatch ( family , service , settings ) [source]

Handles cloudwatch settings and IAM. Some parameters can not be set and we will auto-define values for these as a backup.

Parameters :
Return type :

None

ecs_composex.ecs.ecs_firelens.firelens_logger_helpers. handle_firehose_config ( family , service , settings ) [source]

Function to handle firehose destination and detect settings to set accordingly, such as IAM Permissions

Parameters :
Return type :

None

ecs_composex.ecs.ecs_firelens.firelens_logger_helpers. handle_kinesis_config ( family , service , settings ) [source]

Function to handle kinesis datastream destination and detect settings to set accordingly, such as IAM Permissions

Parameters :
Return type :

None

ecs_composex.ecs.ecs_firelens.firelens_logger_helpers. parse_set_update_firelens_configuration_options ( family , service , settings ) [source]

Parses the defined options for awsfirelens “driver” and set other settings based on that.

Parameters :
Return type :

None

ecs_composex.ecs.ecs_firelens.firelens_managed_sidecar_service module

class ecs_composex.ecs.ecs_firelens.firelens_managed_sidecar_service. FluentBit ( name , definition ) [source]

Bases: ManagedSidecar

add_to_family ( family , is_dependency = False ) [source]

Adds the container as a sidecar to the family in order to fulfil a specific purpose for an AWS Feature, here, add xray-daemon for dynamic tracing.

Parameters :
Return type :

None

property firelens_config
fluentbit_firelens_defaults : dict = {'Options': {'enable-ecs-log-metadata': True}, 'Type': 'fluentbit'}
set_as_dependency_to_family_services ( is_dependency = True ) [source]

As it is the logging router, it needs to start before every other container :type is_dependency: bool :param is_dependency: :rtype: None :return:

set_firelens_configuration ( ) [source]
ecs_composex.ecs.ecs_firelens.firelens_managed_sidecar_service. render_agent_config ( family , api_health_enabled = False , enable_prometheus = False , memory_limits = 64 , cpu_limits = 0.1 ) [source]
Return type :

dict

ecs_composex.ecs.ecs_firelens.firelens_options_generic_helpers module

ecs_composex.ecs.ecs_firelens.firelens_options_generic_helpers. handle_cross_account_permissions ( family , service , settings , parameter_name , config_value ) [source]

Function to automatically add cross-account role access for FireHose to the specified role ARN :type family: ecs_composex.ecs.ecs_family.ComposeFamily :param family: :type service: ecs_composex.compose.compose_services.ComposeService :param service: :type settings: ecs_composex.common.settings.ComposeXSettings :param settings: :type parameter_name: str :param parameter_name: :type config_value: str :param config_value: :return:

Module contents

Manages and allows versatile configuration of FireLens logging.