ryanmurakami / pizza-luvrs

❤️🍕🍕❤️ Demo project for AWS Developer: Getting Started on Pluralsight
114 stars 255 forks source link

Cloudformation alarm creation failed #26

Closed amirmohsen closed 4 years ago

amirmohsen commented 5 years ago

Hey Ryan, thanks for the lesson. I'm having issues with the cloudformation template. When I try to create a stack, the alarm creation fails for all of the alarms with the following error:

ValidationErrornull (Service: AmazonCloudWatch; Status Code: 400; Error Code: ValidationError; Request ID: [REQUEST_ID])

And as a result, the creation of the rest of the resources is cancelled.

Any ideas?

ryanmurakami commented 5 years ago

Hi Amir!

Hmm... I don't know that there's enough information here to troubleshoot. It looks like it was an error that was thrown when running validation on the cloudformation template itself, so it could be a typo or mis-formatted yaml? Does the stack appear in the AWS Cloudformation dashboard? If so, the events section might give you more information around what specifically failed. I would look for the first chronologically failing event and that error should be relevant.

Let me know if you find it.

ARWhattam commented 5 years ago

Hi Amir,

On the course I was using my local region rather than 'us-west-2' which Ryan uses in the course and I had the same error. By replacing all instances of 'us-west-2' in the template with my local region the stack then created the alarms successfully. I'm not sure what exactly caused the "ValidationErrornull" error to occur though.

Might be a bit late for you but hopefully if anyone has the same issue they will see this!

gruffeety commented 4 years ago

I had a similar experience, I replaced 9 instances of us-west-2 with us-east-1... seems to be working now...

ryanmurakami commented 4 years ago

I'll fix that in a future update. Sorry you had to go through that!