aws-cloudformation-github-deploy
aws-cloudformation-github-deploy copied to clipboard
Show error code / message for cloudformation errors
I was trying to create an S3 BucketPolicy, and the step was hanging for about 7 minutes, and then failed with the following message: Resource is not in the state stackUpdateComplete
Eventually I found cloud trail logs [1] - this showed that this request was failing with AccessDenied due to the deployment user missing s3:PutBucketPolicy and s3:DeleteBucketPolicy permissions.
Could the response from API call be shown in the log? Or possibly just the errorCode / errorMessage properties if they are present?
[1] https://eu-west-2.console.aws.amazon.com/cloudtrail/home