Setting correct CloudWatch endpoint