Three-Tier Architecture Wordpress Blog using Cloudformation

Sakinazaffar
3 min readJul 31, 2022

--

Today , We’re going to learn how you can create a three-tier architecture via cloudformation ( AWS’s IaC Tool ) but first what is a three-tier architecture and what are its advantages ?

Think about the name , Three tier , so as the name suggests , separating the presentation , app and data layer into tiers.

  • Presentation Layer — The user interface , this is what the end user interact with
  • Application Layer — This is the brain , where all the processing happens and this is the layer that interacts with the database layer
  • Data Layer — Our data is stored here , The database can be a mysql , or a no sql or may be even a graph database , totally depends on your data.

Advantages of Three Tier

  • Scalable — Since its’ not a monolith architecture , we can scale individual components up and down. And We can also leverage horizontal Scaling
  • Security — The user doesn’t directly interact with the data , so that’s added security because the database is in a private subnet and inreachable via the internet and only the app layer can connect to the data layer.
  • Operations — Easily to maintain and modify

Building Three Tier Architecture using Cloudformation

Aws has pre-built Cloudformation template for us to deploy a highly available wordpress website that follows the three-tier architecture.

This is the architecture we’re going to build

  • Open the cloudformation console and select create stack
  • Select Use a sample template and select wordpress blog from the drop down and click next
  • Enter the stack name and select the relevant options from the drop downs
  • Click Next -> Review -> Create Stack

After this , AWS will start creating your resources , It’ll be in creation state initially

You can check the event logs to see what resources has been created

Once your cloudformation stack status is completed , your wordpress blog will be up and running and you can start taking your online presence to the next level :) , Until then , This is your friendly neighbourhood DevOps Engineer is signing off.

--

--