[go: up one dir, main page]

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

Infrastructure As Code Terraform Retry

Infrastructure as Code (IaC) is a method of managing infrastructure through code, with Terraform being a popular tool for this purpose. Key benefits of IaC include version control, automation, and reduced human errors, while Terraform's components include providers, resources, and state management. The typical workflow involves initializing the configuration, planning changes, and applying those changes to ensure consistent and scalable infrastructure provisioning.

Uploaded by

Bea
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)
35 views1 page

Infrastructure As Code Terraform Retry

Infrastructure as Code (IaC) is a method of managing infrastructure through code, with Terraform being a popular tool for this purpose. Key benefits of IaC include version control, automation, and reduced human errors, while Terraform's components include providers, resources, and state management. The typical workflow involves initializing the configuration, planning changes, and applying those changes to ensure consistent and scalable infrastructure provisioning.

Uploaded by

Bea
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

Infrastructure as Code (IaC) Using Terraform

Infrastructure as Code (IaC) Using Terraform


Infrastructure as Code (IaC) is a practice where infrastructure is provisioned and managed using
code instead of manual processes. Terraform by HashiCorp is a widely-used IaC tool.

Why IaC?
- Version control of infrastructure
- Reusability and automation
- Reduce human errors

Terraform Key Components:


- Provider: Interface to cloud platforms (e.g., AWS)
- Resource: Component to create (e.g., EC2 instance)
- State: Tracks deployed infrastructure

Sample Terraform Code:


provider "aws" {
region = "us-west-2"
}

resource "aws_instance" "web" {


ami = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
}

Workflow:
1. terraform init Initialize config
2. terraform plan Preview changes
3. terraform apply Apply changes

IaC allows consistent and repeatable provisioning, making infrastructure agile and scalable.

You might also like