After creating an EC2 (free tier)

 Choose an Amazon Machine Image

Install Apache:

sudo yum install httpd

follow this tutorial:

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html

And to enable the public IP:

create security group with request you are wish to grant access. here I’ve created security group to any request

enter image description here

Then add the specific security group to network interface

enter image description here