Infrastructure as Code (IaC)
Infrastructure as Code (IaC) is the practice of managing infrastructure using code, which allows for more consistent, repeatable deployments. Tools like Terraform and Ansible are commonly used for IaC. Here's an example of using Terraform to provision an AWS EC2 instance:
arduino
provider "aws" {
region = "us-west-2"
}
resource "aws_instance" "example" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
tags = {
Name = "example-instance"
}
}
No comments:
Post a Comment