Working from wp-config-sample.php The wordpress/wp-config-sample.php will serve as the start of our wp-config.php that we’re copying in. From the root we’ll copy this config file into the wordpress directory that we’ll be zipping up. The following diff gives a short summary of the changes being made from the base sample: Enabling SSL Now that we’re…
Continue ReadingCategory: Building the Elasticbeanstalk Source Bundle
Stub in commands.config
Overview With the salts out of the way, we’ll need to stub in the basic commands under the .ebextensions directory that help define the lifecycle of our Elasticbeanstalk application. In the interest of getting to our first testable source bundle, we’ll start by stubbing in commands.config under .ebextensions. So that, later, the configuration and lifecycle…
Continue ReadingWrite Out keys.config
Now that we have the salts, we’ll want to use them to establish the keys.config: And then in main:
Continue ReadingGet WordPress Salts
So for the salts, I started simple, with the underlying assumption that each deployment could be pre-salted by the source bundle, and reduce operational overhead. But upon reading a bit further saw that rotating the salts regularly is a good opportunity to invalidate sessions, and ensure that logins are having to regularly happen — so…
Continue ReadingEstablish the WordPress Directory Structure
And now that we’ve parameterized the arguments, we’ll want to focus on a repeatable process for building the Elastic Beanstalk source bundle. Establish the wordpress directory from the latest sources available: 💡 Reviewing the following was helpful while updating the code to Python 3: https://docs.python.org/3.8/library/zipfile.html.
Continue ReadingStart a New Project & Get the Command Line Interface Arguments
Start a new project in your IDE. Add a new build.py file. First thing we’ll need to be able to do is to be able to parse some args: Then call that:
Continue ReadingBuilding the Elasticbeanstalk Source Bundle
Time needed: 15-60 minutes per lecture (click next at your leisure). In this section we’ll expose php.ini configuration options as new environment variables passed in from Elastic Beanstalk, re-build the package, and then test a new deployment. You’ll need: Python 3. You’ll want: An IDE with support for Python and Bash. Directions: Following the steps…
Continue Reading