code: def get_stack_info(self, stack):
          
          stack_name = stack['StackId']
  
          try:
              template = self.cloudformation.get_template(
                  StackName=stack_name)['TemplateBody']
          except botocore.exceptions.ClientError as e:
              if "does not exist" not in str(e):
                  raise
              raise exceptions.StackDoesNotExist(stack_name)
  
          parameters = self.params_as_dict(stack.get('Parameters', []))
  
          return [json.dumps(template), parameters]
docs: Get the template and parameters of the stack currently in AWS
  
          Returns [ template, parameters ]