Update ec2-write-memory-metrics.sh

Removing typo - had duplicate curl command.
Removing typo - had duplicate curl command.