It is not indispensable for the exercise, but if you have a public domain register, you can create an A DNS record.
You need to have a Route 53 public domain registered like mine: devopstools.link. If you don't know how to register, go to https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-register-update.html and follow the instructions there. Based on my experience, you will need to wait from 30 minutes to two hours and the new domain will then be available. To create a record follow these steps:
- Go to Route53 | Hosted zones and select your zone
- Click on the Create Record Set button
- Insert a name and choose the bookapp name
- Insert the public IP of your EC2 machine
- Click on the Create button as shown ...