Skip to content

Proper error reportingΒ #146

@albertodiazdorado

Description

@albertodiazdorado

Although this action works nicely when things work out correctly, the error reporting when things go wrong is lacking. In fact, the error reporting is so poor that, when I need to debug a certain class of errors, I need to add a step to my github actions issuing the command aws cloudformation deploy just so that I can debug the problem.

I can provide a concrete example. My deployment just failed, and aws-cloudformation-github-deploy issues the following error:

Error: 1 validation error detected: Value 'AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
(...)
(the beginning of the template follows)

With that kind of error I am clueless about how to fix my deployment. When I use the AWS CLI I obtain:

Templates with a size greater than 51,200 bytes must be deployed via an S3 Bucket. Please add the --s3-bucket parameter to your command. The local template will be copied to that S3 bucket and then deployed.
Error: Process completed with exit code 255.

I can provide a single example right now, but I have found myself in this situation multiple times. Thus:

  1. Am I doing something wrong? Do we have a documented/undocumented --debug flag that I should be using?
  2. If not: are you interested in reworking the error reporting? Should I try to open a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions