
Version Control – allows you to store the history of your infrastructure and revert to a previous version if needed.

#BLUEPRINT BACKGROUND IMAGE CODE#
This brings all the benefits of code to managing your infrastructure like: Infrastructure as code expresses your desired infrastructure in the language of code. Managing complex infrastructure through the console also introduces the possibility of human error. This is fine if it is a one time activity.īut if you need to repeat this across different environments like development and test, or need to add additional infrastructure like caches, queues, firewall rules, IAM or SSL certificates, then it becomes increasingly more complex to manage through the AWS console. If you want to create this infrastructure through the AWS console, you would have to manually click through various screens to spin up the infrastructure. The database runs on AWS RDS.Įach of the instances are in an autoscaling group with a load balancer in front of it (except for the database tier). The database tier is responsible for storing and managing the application's data and allows access to its data through the logic tier. The logic tier is responsible for processing user requests and generating responses, by communicating with the database layer to retrieve or store data. It includes the user interface components such as HTML, CSS, and JavaScript running on EC2 instances. The presentation tier is responsible for presenting the user interface to the user. Imagine you are trying to create a three-tiered web application on AWS as you can see in the image below: Three tiered web application example I'll also introduce you to Terraform, which is an open source infrastructure as code tool you can use to create infrastructure across multiple cloud providers like AWS, GCP, Azure and others. We'll cover the different infrastructure as code tools available as well as declarative vs imperative code


The article will cover how infrastructure as code works using an analogy. This gives you all the benefits of using code to create your infrastructure, like version control, faster and safer infrastructure deployments across different environments, and having up to date documentation of your infrastructure. Infrastructure as Code (IaC) is a way of managing your infrastructure like it was code.
