I have done a fresh installation of WordPress on AWS Elastic BeanStalk.
I am not using the root directory. I have moved the WordPress code to the public directory.