def get_auto_scaling_group(asg, asg_name: str):
    """Get boto3 Auto Scaling Group by name or raise exception"""
    result = asg.describe_auto_scaling_groups(AutoScalingGroupNames=[asg_name])
    groups = result["AutoScalingGroups"]
    if not groups:
        raise Exception("Auto Scaling Group {} not found".format(asg_name))
    return groups[0]