Exit with code 2 if CloudFormation tells us no updates are needed

I would like to be able to distinguish between the case where 'apply' fails due to an actual problem with the template, and the case where it fails because the template hasn't changed.