2017-03-28 01:19:52 +00:00
|
|
|
---
|
|
|
|
layout: "intro"
|
|
|
|
page_title: "Vagrant vs. Terraform"
|
|
|
|
sidebar_current: "vs-terraform"
|
|
|
|
description: |-
|
|
|
|
Vagrant is a tool for managing virtual machines. Terraform is another open
|
|
|
|
source tool from HashiCorp which enables infrastructure as code.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Vagrant vs. Terraform
|
|
|
|
|
2017-03-28 17:38:20 +00:00
|
|
|
Vagrant and [Terraform][terraform] are both projects from [HashiCorp][hashicorp].
|
|
|
|
Vagrant is a tool focused for managing development environments and
|
|
|
|
Terraform is a tool for building infrastructure.
|
2017-03-28 01:19:52 +00:00
|
|
|
|
2017-04-26 10:20:32 +00:00
|
|
|
Terraform can describe complex sets of infrastructure that exists
|
2017-03-28 17:38:20 +00:00
|
|
|
locally or remotely. It is focused on building and changing that infrastructure
|
|
|
|
over time. The minimal aspects of virtual machine lifecycle can be reproduced
|
|
|
|
in Terraform, sometimes leading to confusion with Vagrant.
|
|
|
|
|
|
|
|
Vagrant provides a number of higher level features that Terraform doesn't.
|
|
|
|
Synced folders, automatic networking, HTTP tunneling, and more are features
|
|
|
|
provided by Vagrant to ease development environment usage. Because Terraform
|
|
|
|
is focused on infrastructure management and not development environments,
|
|
|
|
these features are out of scope for that project.
|
|
|
|
|
|
|
|
The primary usage of Terraform is for managing remote resources in cloud
|
|
|
|
providers such as AWS. Terraform is designed to be able to manage extremely
|
|
|
|
large infrastructures that span multiple cloud providers. Vagrant is designed
|
|
|
|
primarily for local development environments that use only a handful of
|
|
|
|
virtual machines at most.
|
|
|
|
|
|
|
|
Vagrant is for development environments. Terraform is for more general
|
|
|
|
infrastructure management.
|
2017-03-28 01:19:52 +00:00
|
|
|
|
|
|
|
[hashicorp]: https://www.hashicorp.com
|
|
|
|
[terraform]: https://www.terraform.io
|