ecs_composex.elbv2 package ¶
Subpackages ¶
-
ecs_composex.elbv2.elbv2_stack package
- Subpackages
- Submodules
-
ecs_composex.elbv2.elbv2_stack.elbv2 module
-
Elbv2-
Elbv2.associate_to_template() -
Elbv2.define_override_subnets() -
Elbv2.find_lookup_listeners() -
Elbv2.init_outputs() -
Elbv2.is_alb() -
Elbv2.is_nlb() -
Elbv2.lb_type -
Elbv2.parse_attributes_settings() -
Elbv2.set_eips() -
Elbv2.set_lb_attributes() -
Elbv2.set_lb_definition() -
Elbv2.set_listeners() -
Elbv2.set_services_targets() -
Elbv2.set_subnet_mappings() -
Elbv2.set_subnets() -
Elbv2.sort_alb_ingress() -
Elbv2.sort_props() -
Elbv2.sort_sg() -
Elbv2.subnets_param -
Elbv2.update_from_vpc() -
Elbv2.validate_services()
-
-
-
ecs_composex.elbv2.elbv2_stack.helpers module
-
add_acm_certs_arn() -
add_extra_certificate() -
add_listener_certificate_via_arn() -
define_actions() -
define_listener_rules_actions() -
define_target_conditions() -
handle_cross_zone() -
handle_default_actions() -
handle_desync_mitigation_mode() -
handle_drop_invalid_headers() -
handle_http2() -
handle_import_cognito_pool() -
handle_non_default_services() -
handle_predefined_redirects() -
handle_string_condition_format() -
handle_timeout_seconds() -
http_to_https_default() -
import_cognito_pool() -
import_new_acm_certs() -
map_service_target() -
match_target_group_to_listener_target() -
tea_pot() -
upgrade_listener_to_use_tls() -
validate_duplicate_targets() -
validate_listeners_duplicates()
-
- Module contents
Submodules ¶
ecs_composex.elbv2.elbv2_ecs module ¶
- class ecs_composex.elbv2.elbv2_ecs. ComposeTargetGroup ( title , elbv2 , family , service , stack , port , ** kwargs ) [source] ¶
-
Bases:
TargetGroupClass to manage Target Groups
- class ecs_composex.elbv2.elbv2_ecs. MergedTargetGroup ( name , definition , elbv2 , stack , port , ** kwargs ) [source] ¶
-
Bases:
TargetGroupClass for TargetGroup merged among more than one service
- property definition : dict ¶
- ecs_composex.elbv2.elbv2_ecs. define_service_target_group ( resource , family , service , resources_root_stack , target_definition ) [source] ¶
-
Function to create the elbv2 target group
- Return type :
- ecs_composex.elbv2.elbv2_ecs. define_service_target_group_definition ( resource , family , service , target_def , resources_root_stack ) [source] ¶
-
Function to create the new service TGT Group for a given combination of family, service and port.
- Return type :
- ecs_composex.elbv2.elbv2_ecs. elbv2_to_ecs ( resources , services_stack , res_root_stack , settings ) [source] ¶
-
Entrypoint function to map services, targets, listeners and ACM together
- Parameters :
-
-
resources ( dict ) –
-
services_stack ( ecs_composex.common.stacks.ComposeXStack ) –
-
res_root_stack ( ecs_composex.common.stacks.ComposeXStack ) –
-
settings ( ecs_composex.common.settings.ComposeXSettings ) –
-
- Returns :
-
- ecs_composex.elbv2.elbv2_ecs. handle_path_settings ( props , path_raw ) [source] ¶
-
Function to set the path and codes properties
- Parameters :
-
-
props ( dict ) –
-
path_raw ( str ) –
-
- Returns :
-
- ecs_composex.elbv2.elbv2_ecs. handle_ping_settings ( props , ping_raw ) [source] ¶
-
Function to setup the “ping” settings
- Parameters :
-
-
props ( dict ) –
-
ping_raw ( str ) –
-
- Returns :
-
- ecs_composex.elbv2.elbv2_ecs. handle_services_association ( load_balancer , res_root_stack , settings ) [source] ¶
-
Function to handle association of listeners and targets to the LB
- Return type :
-
None
- ecs_composex.elbv2.elbv2_ecs. handle_sg_lb_ingress_to_service ( resource , family , resources_stack ) [source] ¶
-
Function to add ingress from the LB to Target if using ALB :type resource: :param resource: :param ecs_composex.ecs.ecs_family.ComposeFamily family: :type resources_stack: :param resources_stack: :return:
- ecs_composex.elbv2.elbv2_ecs. handle_target_groups_association ( load_balancer , res_root_stack , settings ) [source] ¶
-
Function to create TargetGroups based on the TargetGroups defined on the ELB rather than the services. This allows to associate more than one ECS service to a single TargetGroup.
- Return type :
-
None
- ecs_composex.elbv2.elbv2_ecs. import_target_group_attributes ( props , target_def , elbv2 ) [source] ¶
- ecs_composex.elbv2.elbv2_ecs. set_healthcheck_definition ( props , target_definition , healtheck_keyword = 'healthcheck' ) [source] ¶
-
- Parameters :
-
-
props ( dict ) –
-
target_definition ( dict ) –
-
- Returns :
-
- ecs_composex.elbv2.elbv2_ecs. validate_props_and_service_definition ( props , service ) [source] ¶
-
Function to validate that the defined settings are valid according to the service definition. :type props: :param props: :param ecs_composex.common.compose_services.ComposeService service: :return:
- ecs_composex.elbv2.elbv2_ecs. validate_target_group_attributes ( target_attributes , validation , lb_type ) [source] ¶
-
Function to ensure that each attribute set is compatible with elbv2.type == application
- Parameters :
-
-
target_attributes ( list [ TargetGroupAttribute ] ) –
-
validation ( dict ) –
-
lb_type ( str ) –
-
- Raises :
-
ValueError