terraform/website/intro/index.html.markdown

82 lines
3.4 KiB
Markdown
Raw Normal View History

2014-07-16 23:51:48 +02:00
---
layout: "intro"
page_title: "Introduction"
sidebar_current: "what"
2014-10-22 05:21:56 +02:00
description: |-
Welcome to the intro guide to Terraform! This guide is the best place to start with Terraform. We cover what Terraform is, what problems it can solve, how it compares to existing software, and contains a quick start for using Terraform.
2014-07-16 23:51:48 +02:00
---
# Introduction to Terraform
2014-07-23 21:04:02 +02:00
Welcome to the intro guide to Terraform! This guide is the best
place to start with Terraform. We cover what Terraform is, what
problems it can solve, how it compares to existing software,
and contains a quick start for using Terraform.
2014-07-16 23:51:48 +02:00
2014-07-23 21:04:02 +02:00
If you are already familiar with the basics of Terraform, the
[documentation](/docs/index.html) provides a better reference
guide for all available features as well as internals.
2014-07-16 23:51:48 +02:00
> **Hands-on:** Try the [Get Started](https://learn.hashicorp.com/tutorials/terraform/infrastructure-as-code) tutorials on HashiCorp Learn.
2014-07-23 21:04:02 +02:00
## What is Terraform?
2014-07-16 23:51:48 +02:00
2014-07-23 21:04:02 +02:00
Terraform is a tool for building, changing, and versioning infrastructure
safely and efficiently. Terraform can manage existing and popular service
providers as well as custom in-house solutions.
Configuration files describe to Terraform the components needed to
run a single application or your entire datacenter.
Terraform generates an execution plan describing
what it will do to reach the desired state, and then executes it to build the
described infrastructure. As the configuration changes, Terraform is able
to determine what changed and create incremental execution plans which
can be applied.
The infrastructure Terraform can manage includes
low-level components such as
compute instances, storage, and networking, as well as high-level
components such as DNS entries, SaaS features, etc.
2019-12-03 16:44:15 +01:00
<iframe src="https://www.youtube.com/embed/h970ZBgKINg" frameborder="0" allowfullscreen="true" width="560" height="315" ></iframe>
2014-07-23 21:04:02 +02:00
Examples work best to showcase Terraform. Please see the
[use cases](/intro/use-cases.html).
The key features of Terraform are:
2017-04-06 20:02:56 +02:00
### Infrastructure as Code
Infrastructure is described using a high-level configuration syntax. This allows
a blueprint of your datacenter to be versioned and treated as you would any
other code. Additionally, infrastructure can be shared and re-used.
### Execution Plans
Terraform has a "planning" step where it generates an _execution plan_. The
execution plan shows what Terraform will do when you call apply. This lets you
avoid any surprises when Terraform manipulates infrastructure.
### Resource Graph
Terraform builds a graph of all your resources, and parallelizes the creation
and modification of any non-dependent resources. Because of this, Terraform
builds infrastructure as efficiently as possible, and operators get insight into
dependencies in their infrastructure.
### Change Automation
Complex changesets can be applied to your infrastructure with minimal human
interaction. With the previously mentioned execution plan and resource graph,
you know exactly what Terraform will change and in what order, avoiding many
possible human errors.
2014-07-16 23:51:48 +02:00
## Next Steps
- Learn about common [Terraform use cases](/intro/use-cases.html) to find multiple
ways you can use Terraform.
- Learn [how Terraform compares to other infrastructure tools](/intro/vs/index.html).
- Try the [Terraform: Get
Started](https://learn.hashicorp.com/collections/terraform/aws-get-started)
tutorials on HashiCorp Learn to use Terraform to manage real infrastructure.