code: 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=regionf 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)
docs: Rescale a stack