This is just a fixed and cleaned-up version of template from AWS tutorial https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/GettingStarted.Walkthrough.html (which is currently broken)
If you want to create stack from cli, make sure you create the profile first with
aws configure --profile ec2usr