Terraform Introduction

terraform

Where to learn from

About Terraform

  • HashiCorp Terraform is an infrastructure as code tool that lets you define both cloud and on-prem resources in human-readable configuration files.
  • You can version, reuse, and share these file.

Infrastructure as a code (IaC)

  • IaC is the process of managing and provisioning computer resources through machine (and human) readable definition files
  • The IT infrastructure managed by this process comprises both physical equipment, such as bare-metal servers, as well as virtual machines, and associated configuration resources.
  • The definitions are generally kept in a version control system
  • The code in the definition files may use either scripts or declarative definitions, but IaC more often employs declarative approaches.
  • Other IaC Examples:

How does Terraform work

  • Terraform uses plugins called providers that can access any platform or cloud provider.
  • There are thousands of providers that are created both by the terraform community and Hashicorp.
    terraform operation
  • Terraform then creates resources, for example:
    • a compute instance
    • a file storage
    • a database instance
    • a cloud network
    • etc.