calling cloudwatch every 500 ms