Skip to content

Terraform code to deploy an High Availability Wordpress Hosting in AWS. The infrastructure is well schematized by this picture:

Notifications You must be signed in to change notification settings

mrvincentoti/ha-laravel-aws-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HA Laravel Application on AWS

Highly available Laravel Application on AWS

Terraform and ansible code to deploy an High Availability Laravel Application in AWS using. The infrastructure is well schematized by this picture: infra

Get started

To try the infrastracture on your AWS account, make sure to configure aws cli and then run the below code from your project directory:

terraform init
terraform plan
terraform apply

Components

The infrastructure is planned to be deployed in eu-west-1 zone, on two availability zones (eu-west-1a and eu-west-1b). It is composed by the following modules:

Networking

The networking module is based on the vpc module, which with few lines of code builds up a VPC, configures subnets, the internet gateway and route tables.

Data

The data layer builds the following components:

  • RDS Aurora Cluster with two instances, one per availability zone.

Application

The application layer builds the following components:

  • An application load balancer.
  • A launch configuration which installs apache, php and wordpress on Amazon Linux 2 machines.
  • An autoscaling group.
  • A bastion server to reach out the VMs within the autoscaling group.

About

Terraform code to deploy an High Availability Wordpress Hosting in AWS. The infrastructure is well schematized by this picture:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published