How to configure elasticsearch on ec2 of aws for a single node?

That should be ok then.
What are your elasticsearch logs?