def create_hosted_zone():
    hosted_zone_template = Template()
    hosted_zone_template.set_version('2010-09-09')
    hosted_zone_template.set_description('Hosted zone stack created for testing existing DNS')
    hosted_zone_template.add_resource(HostedZone('HostedZoneResource', Name=domain_name, VPCs=[HostedZoneVPCs(VPCId=vpc_stack.cfn_outputs['VpcId'], VPCRegion=region)]))
    hosted_zone_stack = CfnStack(name=hosted_zone_stack_name, region=region, template=hosted_zone_template.to_json())
    cfn_stacks_factory.create_stack(hosted_zone_stack)
    return (hosted_zone_stack.cfn_resources['HostedZoneResource'], domain_name)
def create_hosted_zone():
    hosted_zone_template = Template()
    hosted_zone_template.set_version('2010-09-09')
    hosted_zone_template.set_description('Hosted zone stack created for testing existing DNS')
    hosted_zone_template.add_resource(HostedZone('HostedZoneResource', Name=domain_name, VPCs=[HostedZoneVPCs(VPCId=vpc_stack.cfn_outputs['VpcId'], VPCRegion=region)]))
    hosted_zone_stack = CfnStack(name=hosted_zone_stack_name, region=region, template=hosted_zone_template.to_json())
    cfn_stacks_factory.create_stack(hosted_zone_stack)
    return (hosted_zone_stack.cfn_resources['HostedZoneResource'], domain_name)