source the script only for cloudwatch users, and only use cloudwatch when the metric configuration specifies it