To deploy to WordPress, first you must download the WordPress files from https://wordpress.org/download/. You should extract the downloaded ZIP files into your local directory, called WordPress, and ensure that you see following directory and files:
The WordPress application requires a MySQL database as a backend database. I will make use of the database we spun up in the RDS section earlier. You need to copy the file wp-config-sample.php as wp-config.php and update the database connectivity parameters. The following four parameters need to be updated. I have pasted the updated section from the wp-config.php file.
Because we have not spun up the RDS DB instance used in this case as part of the Beanstalk stack, we have to let the environment know about the DB instance, and you can do this by defining the environment variables for that...