ecs_composex.route53 package

Submodules

ecs_composex.route53.route53_acm module

Manages x-route53 to x-acm

ecs_composex.route53.route53_acm. handle_acm_records ( x_hosted_zone , route53_stack , target_cert , acm_stack , settings , root_stack = None ) [source]

Function to go over the ACM Certificate Domain validation options, and identifies x-route53 to map it to.

Parameters :
ecs_composex.route53.route53_acm. lookup_dns_zone ( route53_zone , validation_option , acm_stack , settings ) [source]

Update the HostedZoneId property when using a lookup DNS zone

Parameters :
ecs_composex.route53.route53_acm. new_dns_zone ( route53_zone , acm_stack , validation_option ) [source]

Update the HostedZoneId property when using a new Route53 zone

Parameters :
  • route53_zone

  • acm_stack

  • validation_option ( troposphere.certificatemanager.DomainValidationOption ) –

ecs_composex.route53.route53_acm. update_route53_pointer ( x_hosted_zone , validation_setting , route53_stack , target_cert , acm_stack , settings ) [source]

Iterates over each HostedZone and upon finding the right one :param ecs_composex.route53.route53_zone.HostedZone x_hosted_zone: List of HostedZones defined :param troposphere.certificatemanager.DomainValidationOption validation_setting: :param XStack route53_stack: :param ComposeXStack acm_stack: :param ecs_composex.common.settings.ComposeXSettings settings:

ecs_composex.route53.route53_elbv2 module

ecs_composex.route53.route53_helpers module

ecs_composex.route53.route53_helpers. filter_out_cloudmap_zones ( zones , zone_name ) [source]

Function to filter out the Hosted Zones linked to CloudMap

ecs_composex.route53.route53_helpers. lookup_hosted_zone ( zone , session , private , zone_id = None ) [source]

Describes all zones in account via the session, returns the details about the one zone if found

Parameters :
  • zone ( HostecZone ) –

  • session ( boto3.session.Session ) –

  • private ( bool ) –

  • zone_id ( str ) – The Zone ID

Return type :

dict

Returns :

ecs_composex.route53.route53_helpers. resolve_lookup ( lookup_resources , settings , module ) [source]

Lookup the ACM certificates in AWS and creates the CFN mappings for them

Parameters :
Return type :

None

ecs_composex.route53.route53_module module

ecs_composex.route53.route53_params module

Module for DNS Route53 parameters

ecs_composex.route53.route53_params. validate_domain_name ( new_record , base_domain ) [source]

Validates that the new alias DNS Name matches the domain basename

Parameters :
  • new_record ( str ) –

  • base_domain ( str ) –

Raises :

ValueError if there is no match

ecs_composex.route53.route53_stack module

Module contents