def scale(stack_name: str,
          stack_version: Optional[str],
          new_scale: int,
          region: Optional[str],
          remote: Optional[str]):
    '''Rescale a stack'''
    lizzy = setup_lizzy_client(remote)

    with Action('Requesting rescale..'):
        stack_id = '{stack_name}-{stack_version}'.format_map(locals())
        lizzy.scale(stack_id, new_scale, region=region)
def scale ( stack_name : str , stack_version : Optional [ str ] , new_scale : int , region : Optional [ str ] , remote : Optional [ str ] ) : lizzy = setup_lizzy_client ( remote ) with Action ( 'Requesting rescale..' ) : stack_id = '{stack_name}-{stack_version}' . format_map ( locals ( ) ) lizzy . scale ( stack_id , new_scale , region = region )
Rescale a stack