Terraform Notes
Terraform Notes

Terraform Notes

Tags
DevOps
Published
August 27, 2021
💡
The old content of this page has been remove and will be updated with new one

What is Terraform?

Terraform is an open source tool for building, changing, and versioning infrastructure safely and efficiently. It supports a wide range of cloud providers, including Amazon Web Services, Microsoft Azure, IBM Cloud, and Google Cloud Platform, as well as on-premise solutions. It allows users to define infrastructure as code and then deploy it in a repeatable, predictable manner. Terraform can also be used to manage existing infrastructure, making it easier to maintain and update. Terraform works via making API calls to make this changes.

IAAC

IAAC stands for Infrastructure as a Code. It is the process of managing and provisioning infrastructure through code rather than a manual process. IAAC is used to automate the process of setting up and configuring servers, networks, and other resources. This allows for faster and more efficient deployment of infrastructure components, as well as better scalability.

Commands

  • Initialize a new or existing Terraform configuration:
terraform init
  • Verify that the configuration files are syntactically valid:
terraform validate
  • Format configuration according to Terraform language style conventions:
terraform fmt
  • Generate and show an execution plan:
terraform plan
  • Build or change infrastructure:
terraform apply
  • Destroy Terraform-managed infrastructure:
terraform destroy

Providers