This repository uses the AWS Cloud Development Kit (CDK) to deploy a highly available Wordpress installation on AWS Fargate on Amazon ECS. This will provision a VPC, ECS Cluster, EFS Filesystem, Secrets, Aurora, and Wordpress Containers.
To deploy Wordpress we use the official Wordpress container image available on Docker hub. This image is configured using a volume mount for persistent storage and a series of envrionment variables from AWS Secrets Manager.
Wordpress has shared resources such as plugins, themes, and uploads that all containers need access to in order to function properly. To facilitate this storage, we provision an Amazon Elastic Filesystem (EFS) filesystem that is attached to all of the containers running.
Next, we use AWS Secrets Manager to store database credentials for the Aurora MySQL Database and to generate the Wordpress Salts. These also need to be mounted to every container.
This repository is built on AWS Cloud Development Kit (CDK). For full guidance on using the CDK, see the CDK documentation.
# install the depdencies
npm install
# deploy the stack
cdk deploy
# destroy the stack
cdk destroy
This library is licensed under the MIT-0 License. See the LICENSE file.