标签:htm rem line nta env fun project port pack
Terraform is distributed as a binary package for all supported platforms and architectures and must first be installed on your machine.
Check out the releases CHANGELOG for more information on the latest release and choose the version that is required for your Operating System and your project. If you just getting started with Terraform , I suggest you to get the latest release.
You can download a version of Terraform from the releases service.
1
|
$ wget https://releases.hashicorp.com/terraform/0.xx.x/terraform_0.xx.x_linux_amd64.zip
|
1
|
$ sudo apt-get install unzip
|
1
2
|
$ unzip terraform_0.11.1_linux_amd64.zip
$ sudo mv terraform /usr/local/bin/
|
The easiest and quickest way to install Terraform is using Homebrew.
1
|
$ brew install terraform
|
Or Manually if the latest version is not ideal for your needs.
1
|
$ cp $HOME/Downloads/terraform /usr/local/bin/
|
When you’re done, you should be able to run the terraform command and get the usage information:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$ terraform
Usage: terraform [--version] [--help] <command> [args]
The available commands for execution are listed below.
The most common, useful commands are shown first, followed by
less common or more advanced commands. If you‘re just getting
started with Terraform, stick with the common commands. For the
other commands, please read the help and docs before usage.
Common commands:
apply Builds or changes infrastructure
console Interactive console for Terraform interpolations
destroy Destroy Terraform-managed infrastructure
env Workspace management
fmt Rewrites config files to canonical format
get Download and install modules for the configuration
graph Create a visual graph of Terraform resources
import Import existing infrastructure into Terraform
init Initialize a Terraform working directory
output Read an output from a state file
plan Generate and show an execution plan
providers Prints a tree of the providers used in the configuration
push Upload this Terraform module to Atlas to run
refresh Update local state file against real resources
show Inspect Terraform state or plan
taint Manually mark a resource for recreation
untaint Manually unmark a resource as tainted
validate Validates the Terraform files
version Prints the Terraform version
workspace Workspace management
All other commands:
debug Debug output management (experimental)
force-unlock Manually unlock the terraform state
state Advanced state management
|
Link: https://www.vasos-koupparis.com/terraform-getting-started-install/
Install Terraform on Windows, Linux and Mac OS
标签:htm rem line nta env fun project port pack
原文地址:https://www.cnblogs.com/oskb/p/10265896.html