Skip to content

Commit

Permalink
Merge pull request widdix#34 from widdix/wordpress-v2
Browse files Browse the repository at this point in the history
Wordpress v2
  • Loading branch information
andreaswittig authored Oct 28, 2016
2 parents 51409b5 + 25b8de5 commit 81b4dff
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 73 deletions.
38 changes: 28 additions & 10 deletions wordpress/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
# Wordpress Templates for AWS CloudFormation

## Wordpress: fault tolerant and scalable
This template describes a **fault tolerant** and **scalable** Wordpress environment.
Use this CloudFormation template to create a fault tolerant and scalable Wordpress environment on AWS.

### Features
* HTTPS only
* CDN caching static files
* Scalable file storage
* Fault tolerance due to multi-AZ setup

### Services
This template combines the following services:
* CloudFront: CDN for dynamic and static content
* ELB: load balancer forwarding requests to EC2 instances and terminating SSL
* EC2: virtual machines running the web servers
* EFS: storage for Wordpress files (Wordpress core, plugins, themes, user uploads, ...)
* RDS: MySQL database

![Architecture](./wordpress-ha.png?raw=true "Architecture")

### Installation Guide
1. This templates depends on one of our [`vpc-*azs.yaml`](../vpc/) templates. <a href="https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=vpc-2azs&templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates/vpc/vpc-2azs.yaml">Launch Stack</a>
## Installation Guide
1. This templates depends on our [`vpc-*azs.yaml`](../vpc/) template. Wordpress will use 2 AZs only. <a href="https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=vpc-2azs&templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates/vpc/vpc-2azs.yaml">Launch Stack</a>
1. Create an ACM certificate for your domain name within the region you want to launch your stack in. Copy the ARN of the certificate.
1. Create another ACM certificate for your domain in region `us-east-1`. Copy the ARN of the certificate.
1. <a href="https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=wordpress-ha&templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates/wordpress/wordpress-ha.yaml">Launch Stack</a>
1. Click **Next** to proceed with the next step of the wizard.
1. Specify a name and all parameters for the stack.
Expand All @@ -17,13 +33,15 @@ This template describes a **fault tolerant** and **scalable** Wordpress environm
1. Wait until the stack reaches the state **CREATE_COMPLETE**
1. Grab the `URL` of the Wordpress environment from the **Outputs** tab of your stack.

### Dependencies
* `vpc/vpc-*azs.yaml` (**required**)
* `vpc/vpc-ssh-bastion.yaml`
* `security/auth-proxy-*.yaml`
## Dependencies
* `vpc/vpc-*azs.yaml` (**required, Wordpress will use 2 AZs only**)
* `vpc/vpc-ssh-bastion.yaml` (optional)
* `security/auth-proxy-*.yaml` (optional)

### Limitations
Installing and updating core, plugins and themes is disabled. You need to edit the `/root/config.sh` to change core, plugins and themes during bootstrapping of EC2 instances.
## Limitations
* PHP files are cached for 300 seconds on the web servers.
* Static files `wp-includes` and `wp-content` are cached for 15 minutes on the CDN.
* Pre-defined auto-scaling might not be able to cover your requirements and needs load and performance testing.

## Support
We offer support for our CloudFormation templates: setting up environments based on our templates, adopting templates to specific use cases, resolving issues in production environments. [Hire us!](https://widdix.net/)
Expand All @@ -32,4 +50,4 @@ We offer support for our CloudFormation templates: setting up environments based
We are looking forward to your feedback. Mail to [team@widdix.de](mailto:team@widdix.de).

## About
A [cloudonaut.io](https://cloudonaut.io/templates-for-aws-cloudformation/) project. Engineered by [widdix](https://widdix.net).
A [cloudonaut.io](https://cloudonaut.io/templates-for-aws-cloudformation/) project. Engineered by [widdix](https://widdix.net).
Binary file modified wordpress/wordpress-ha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 81b4dff

Please sign in to comment.