Code Monkey home page Code Monkey logo

wordpress-cloud-formation's People

Contributors

errorsandglitches avatar

wordpress-cloud-formation's Issues

plugins were all uninstalled

Problem

As a last step when ensuring that the system is robust, I killed the EC2 instance. All the plugins that were installed are now gone since they are not being persisted on the EFS instance.

Solution

Fix it so the plugins don't disappear after killing the instance. Specifically, the wp-content folder should be persisted.

Add required information for later instructions as Stack output

Problem

There are some instructions such as creating the alias that need the properties of the resources. Instead of having users provide this data on the CLI, these can be retrieved by using the output of the CF stack as well as possibly needing a few AWS calls. But this simplifies the command and reduce the change of manual error (cough cough).

Solution

Add stack output to the template and use this in later instructions.

WordPress servers do not recover after killing the instance

Problem

The databases for the WordPress servers should already exist in the EFS volume and be used by the Docker containers when starting on the new EC2 instance. However, after killing the instance, the WordPress websites start in the un-configured state i.e. /wp-admin/install.php.

Add S3 permissions to instance so credentials are not needed for WP Offload S3

Problem

S3 credentials are required to send the image data from the WordPress server to S3. Instead of keeping the creds in the DB, which is unsafe, the credentials of the EC2 instance can be used instead.

Solution

  1. Create a public bucket in the cloud formation template
  2. Update the IAM role of the EC2 instance to permit read/write access to the bucket
  3. Delete the credentials from the WordPress DBs

Update README with actual architecture

Problem

The architecture has changed multiple times since I started the project and the architecture drawing, at least, is out of date. After pushing all the changes and getting it fully working, the README.md needs to be revisited.

Solution

Revise the README.md

Add a custom block device mapping to increase root volume size

Problem

When the block device mappings are not specified, the root volume is only 8GiB. Additionally, the default behavior is to
create another EBS volume of 22GiB, which is available to the instance, but not mounted.

Solution

Create a custom Block Device Mapping in the CF template

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.