Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
24 views1 page

Infrstructure As A Code Basics

Uploaded by

Md.Ariful Islam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Infrstructure As A Code Basics

Uploaded by

Md.Ariful Islam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

2.

Infrastructure as Code (IaC)

Definition:​
Infrastructure as Code (IaC) is managing and provisioning infrastructure (servers,
databases, networks) using machine-readable definition files, instead of manual processes.

Why it’s important:

●​ Reduces human error.​

●​ Easily recreates the infrastructure (disaster recovery becomes easy).​

●​ Allows version control of infrastructure just like application code.​

Practical Example:

●​ Suppose you want to create an AWS EC2 server using Terraform.​

You write a .tf file like:​



resource "aws_instance" "example" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
}

●​
●​ Running this file will automatically provision a server on AWS without manual
clicking.​

Popular IaC Tools:

●​ Terraform​

●​ AWS CloudFormation​

●​ Pulumi​

●​ Ansible (for configuration management)​

●​

You might also like