All Projects → rgfindl → headless-wordpress

rgfindl / headless-wordpress

Licence: MIT license
Headless Wordpress - AWS - Easy Setup

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to headless-wordpress

datagov-deploy
Main repository for the data.gov service
Stars: ✭ 156 (+271.43%)
Mutual labels:  infrastructure, stack
devops-infra-demo
Growing repository of Infrastructure as Code demos (initially created for DevOps Wall Street)
Stars: ✭ 31 (-26.19%)
Mutual labels:  infrastructure, iac
terraform-aws-base-networking
Terraform module for building base networking in AWS
Stars: ✭ 15 (-64.29%)
Mutual labels:  infrastructure, vpc
qaz
qaz—A CLI tool for Templating & Managing stacks in AWS Cloudformation
Stars: ✭ 89 (+111.9%)
Mutual labels:  stack, aws-cloudformation
serverless-examples-cached-rds-ws
A serverless framework example project that uses API Gateway, ElastiCache, and RDS PostgreSQL.
Stars: ✭ 45 (+7.14%)
Mutual labels:  vpc, rds
Stack-Lifecycle-Deployment
OpenSource self-service infrastructure solution that defines and manages the complete lifecycle of resources used and provisioned into a cloud! It is a terraform UI with rest api for terraform automation
Stars: ✭ 88 (+109.52%)
Mutual labels:  infrastructure, stack
terraform-vsphere-single-vm
Deploy single vSphere VM with Terraform - template.
Stars: ✭ 21 (-50%)
Mutual labels:  infrastructure, iac
Terrascan
Detect compliance and security violations across Infrastructure as Code to mitigate risk before provisioning cloud native infrastructure.
Stars: ✭ 2,687 (+6297.62%)
Mutual labels:  infrastructure, iac
Magento-2-aws-cluster-terraform
Magento 2 AWS autoscaling cluster with Terraform and Packer or ImageBuilder. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks.
Stars: ✭ 107 (+154.76%)
Mutual labels:  infrastructure, iac
Aws Cf Templates
A cloudonaut.io project. Engineered by widdix.
Stars: ✭ 2,399 (+5611.9%)
Mutual labels:  infrastructure, aws-cloudformation
terraform-otc
Terraform integration modules for Open Telekom Cloud
Stars: ✭ 20 (-52.38%)
Mutual labels:  infrastructure, vpc
terraform-provider-cisco-aci
Terraform provider for automating Cisco ACI enabled networks
Stars: ✭ 14 (-66.67%)
Mutual labels:  infrastructure, iac
aws-map
Make a network graph of an AWS region
Stars: ✭ 79 (+88.1%)
Mutual labels:  vpc, rds
CircularCardsStackView
CircularCardsStackView is an Android library for dealing with swipeable card views.
Stars: ✭ 30 (-28.57%)
Mutual labels:  stack
aws-security-hub-response-and-remediation
Pre-configured response & remediation playbooks for AWS Security Hub
Stars: ✭ 58 (+38.1%)
Mutual labels:  aws-cloudformation
driftctl
Detect, track and alert on infrastructure drift
Stars: ✭ 2,020 (+4709.52%)
Mutual labels:  iac
eks-cluster
Quickly spin up an AWS EKS Kubernetes cluster using AWS CloudFormation
Stars: ✭ 41 (-2.38%)
Mutual labels:  iac
ansible-aws-infra-services
Manage your AWS infrastructure and ECS tasks with two separate ansible playbooks
Stars: ✭ 23 (-45.24%)
Mutual labels:  infrastructure
terraform-provider-checkly
Terraform provider for the Checkly monitoring service
Stars: ✭ 37 (-11.9%)
Mutual labels:  iac
alchemy
Experiments logging & visualization
Stars: ✭ 49 (+16.67%)
Mutual labels:  infrastructure

Headless Wordpress Deployment using AWS CloudFormation

Quikly spin up a headless Wordpress deployment using AWS CloudFormation.

Infrastructure as Code (IaC) is the recommended way to manage the cloud infrastructure that your application runs on. IaC allows you to incrementailly add/remove infrastructure as your application changes.

IaC really shines when you need to spin up a new environment. Lets say you get a huge customer who wants to be on their own instance. You can be up in running withing the hour.

This project contains 5 CloudFormation scripts. They must be created in order because they depend on each other:

  1. VPC
  2. ECS
  3. RDS
  4. ECR
  5. Wordpress

Prerequisites

Stacks

VPC

This creates the Amazon Virtual Private Cloud that our ECS cluster and RDS database will run in.

Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define.

cd vpc
cim stack-up

ECS

This creates an Elastic Container Service that our EC2's will run in.

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, high-performance container orchestration service that supports Docker containers and allows you to easily run and scale containerized applications on AWS.

cd vpc
cim stack-up

RDS

This creates a Relational Database Service database cluster that our Wordpress application will use.

Amazon Relational Database Service (Amazon RDS) makes it easy to set up, operate, and scale a relational database in the cloud.

cd rds
export DatabaseUsername="???"; export DatabasePassword="???"; cim stack-up

ECR

This creates an Elastic Container Registry that will hold the docker images of our wordpress service.

Amazon Elastic Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.

cd ecr
cim stack-up

Wordpress

Before we can launch this cloudformation stack. We need to push our service image to ECR.

Push Image

cd wordpress/src
  • Registry Authentication
    • aws ecr get-login --registry-ids <account-id>
    • copy/past output to perform docker login, also append /headless-wp to the repository url.
  • Build Image
    • docker build -t headless-wp:<version> .
  • Push Image
    • docker tag headless-wp:<version> <account-id>.dkr.ecr.<region>.amazonaws.com/headless-wp:latest
    • docker tag headless-wp:<version> <account-id>.dkr.ecr.<region>.amazonaws.com/headless-wp:<version>
    • docker push <account-id>.dkr.ecr.<region>.amazonaws.com/headless-wp

Update Version

Make sure the Version parameter, in _cim.yml, matches the version tag from above. The ECS Task Definition will pull the image from ECR.

Stack up

Once the Version is set you can use cim stack-up to update the stack with the new version.

cd wordpress
cim stack-up

Wordpress

Congratulations, your new Wordpress site is now available.

First run through the Wordpress setup wizard.

Next enable some of the plugins we added.

Add a few blog posts and pages.

Then check out the API. Ex: https://<cdn-url>/wp-json/wp/v2/posts

Tear down

cd wordpress
cim stack-delete

cd ecr
cim stack-delete

cd rds
cim stack-delete

cd ecs
cim stack-delete

cd vpc
cim stack-delete
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].