ecs_composex.ecs package ¶
Subpackages ¶
-
ecs_composex.ecs.ecs_family package
- Subpackages
- Submodules
- ecs_composex.ecs.ecs_family.family_template module
- ecs_composex.ecs.ecs_family.task_execute_command module
- ecs_composex.ecs.ecs_family.task_runtime module
-
Module contents
-
ComposeFamily
-
ComposeFamily.add_containers_images_cfn_parameters()
-
ComposeFamily.add_managed_sidecar()
-
ComposeFamily.add_service()
-
ComposeFamily.apply_ecs_execute_command_permissions()
-
ComposeFamily.composed_env_processing()
-
ComposeFamily.finalize_family_settings()
-
ComposeFamily.finalize_services_networking_settings()
-
ComposeFamily.generate_outputs()
-
ComposeFamily.handle_alarms()
-
ComposeFamily.handle_logging()
-
ComposeFamily.import_all_sidecars()
-
ComposeFamily.init_family()
-
ComposeFamily.init_network_settings()
-
ComposeFamily.init_task_definition()
-
ComposeFamily.logical_name
-
ComposeFamily.service_arn_param
-
ComposeFamily.service_definition
-
ComposeFamily.service_name_param
-
ComposeFamily.services
-
ComposeFamily.services_names
-
ComposeFamily.set_add_region_when_external()
-
ComposeFamily.set_enable_execute_command()
-
ComposeFamily.set_secrets_access()
-
ComposeFamily.set_services_family_links()
-
ComposeFamily.set_services_to_services_dependencies()
-
ComposeFamily.set_task_definition()
-
ComposeFamily.set_update_containers_priority()
-
ComposeFamily.sort_env_vars()
-
ComposeFamily.sort_secrets()
-
ComposeFamily.sort_secrets_env_vars()
-
ComposeFamily.state_facts()
-
ComposeFamily.task_ephemeral_storage
-
ComposeFamily.validate_compute_configuration_for_task()
-
ComposeFamily.want_xray
-
ComposeFamily.x_environment_processing()
-
-
ServiceStack
-
-
ecs_composex.ecs.ecs_firelens package
-
Subpackages
-
ecs_composex.ecs.ecs_firelens.ecs_firelens_advanced package
- Submodules
- ecs_composex.ecs.ecs_firelens.ecs_firelens_advanced.advanced_firehose module
- ecs_composex.ecs.ecs_firelens.ecs_firelens_advanced.advanced_kinesis module
- ecs_composex.ecs.ecs_firelens.ecs_firelens_advanced.config_parameter module
- ecs_composex.ecs.ecs_firelens.ecs_firelens_advanced.firelens_config_sidecar module
- Module contents
- ecs_composex.ecs.ecs_firelens.helpers package
-
ecs_composex.ecs.ecs_firelens.ecs_firelens_advanced package
- Submodules
- ecs_composex.ecs.ecs_firelens.firelens_advanced_rendered_settings module
- ecs_composex.ecs.ecs_firelens.firelens_logger_helpers module
- ecs_composex.ecs.ecs_firelens.firelens_managed_sidecar_service module
- ecs_composex.ecs.ecs_firelens.firelens_options_generic_helpers module
- Module contents
-
Subpackages
- ecs_composex.ecs.ecs_prometheus package
- ecs_composex.ecs.ecs_service package
- ecs_composex.ecs.helpers package
- ecs_composex.ecs.managed_sidecars package
- ecs_composex.ecs.service_alarms package
- ecs_composex.ecs.service_compute package
-
ecs_composex.ecs.service_networking package
- Submodules
- ecs_composex.ecs.service_networking.helpers module
-
ecs_composex.ecs.service_networking.ingress_helpers module
-
add_service_to_service_ingress_rules()
-
find_namespace()
-
handle_aws_sources()
-
handle_dict_cloudmap_config()
-
handle_ext_sources()
-
handle_ingress_rules()
-
handle_services()
-
handle_str_cloudmap_config()
-
import_set_ecs_connect_settings()
-
merge_cloudmap_settings()
-
merge_family_network_setting()
-
merge_family_services_networking()
-
process_ecs_connect_settings()
-
set_compose_services_ingress()
-
set_ecs_connect_from_macro()
-
-
Module contents
-
ServiceNetworking
-
ServiceNetworking.add_lb_ingress()
-
ServiceNetworking.add_self_ingress()
-
ServiceNetworking.ecs_network_config
-
ServiceNetworking.eip_assign
-
ServiceNetworking.ingress_from_self
-
ServiceNetworking.merge_networks()
-
ServiceNetworking.merge_services_ports()
-
ServiceNetworking.network_mode
-
ServiceNetworking.sd_service
-
ServiceNetworking.security_groups
-
ServiceNetworking.self_key
-
ServiceNetworking.set_ecs_connect()
-
ServiceNetworking.subnets
-
ServiceNetworking.subnets_output
-
-
-
ecs_composex.ecs.service_scaling package
- Submodules
-
ecs_composex.ecs.service_scaling.helpers module
-
define_new_config()
-
define_step_adjustment()
-
define_tracking_target_configuration()
-
generate_alarm_scaling_out_policy()
-
generate_scaling_out_steps()
-
handle_defined_target_scaling_props()
-
handle_defined_x_aws_autoscaling()
-
handle_range()
-
handle_scheduled_actions()
-
handle_target_scaling()
-
merge_family_services_scaling()
-
rectify_scaling_steps()
-
reset_to_zero_policy()
-
validate_steps_definition()
-
- Module contents
- ecs_composex.ecs.task_compute package
- ecs_composex.ecs.task_iam package
Submodules ¶
ecs_composex.ecs.ecs_conditions module ¶
Parameters relating to ECS.
This is a crucial part as all the titles, maked _T are string which are then used the same way across all imports, which gives consistency for CFN to use the same names, which it heavily relies onto.
You can change the names values so you like so long as you keep it Alphanumerical [a-zA-Z0-9]
ecs_composex.ecs.ecs_params module ¶
Parameters bound to ecs_composex.ecs This is a crucial part as all the titles, maked _T are string which are then used the same way across all imports, which gives consistency for CFN to use the same names, which it heavily relies onto.
You can change the names values so you like so long as you keep it [a-zA-Z0-9]
ecs_composex.ecs.ecs_stack module ¶
- ecs_composex.ecs.ecs_stack. add_compose_families ( settings , families_sg_stack ) [source] ¶
-
Using existing ComposeFamily in settings, creates the ServiceStack and template
- Return type :
-
None
- ecs_composex.ecs.ecs_stack. handle_families_dependencies ( settings , families_post ) [source] ¶
-
Function to handle family to family services based on docker compose depends_on
- Parameters :
-
-
settings ( ecs_composex.common.settings.ComposeXSettings ) –
-
families_post ( list ) –
-
- Return type :
-
None
- ecs_composex.ecs.ecs_stack. initialize_family_services ( settings , family ) [source] ¶
-
Function to handle creation of services within the same family.
- Parameters :
-
-
family ( ecs_composex.ecs.ecs_family.ComposeFamily ) –
-
settings ( ecs_composex.common.settings.ComposeXSettings ) –
-
- Return type :
-
None
- Returns :
-
Module contents ¶
Core module for ECS ComposeX.
This module is going to parse each ecs_service and each x-resource key from the compose file (hence Compose-X) and determine its
-
ServiceDefinition
-
TaskDefinition
-
TaskRole
-
ExecutionRole
It is going to also, based on the labels set in the compose file
-
Add the ecs_service to Service Discovery via AWS CloudMap
-
Add load-balancers to dispatch traffic to the microservice
Services logic
-
Define Container Definitions
** Compute ** Storage ** Docker Settings ** Logging Settings ** Env Vars ** Secrets
-
Define Task Definition
** IAM Roles ** Containers ** Volumes (Docker volumes / EFS) ** AppMesh/Proxy Settings
-
Define Service Definition
** Network settings (VPC/SG) ** Ingress settings (ALB/NLB/CloudMap)