-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathterraform_commands.txt
More file actions
73 lines (57 loc) · 1.61 KB
/
terraform_commands.txt
File metadata and controls
73 lines (57 loc) · 1.61 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Terraform Commands
## Initialization
- `terraform init`
Initialize a new or existing Terraform configuration.
## Validation
- `terraform validate`
Validate the Terraform configuration files.
## Formatting
- `terraform fmt`
Reformat your configuration in the standard style.
## Plan
- `terraform plan`
Generate and show an execution plan.
## Apply
- `terraform apply`
Build or change infrastructure.
## Destroy
- `terraform destroy`
Destroy Terraform-managed infrastructure.
## Graph
- `terraform graph`
Generate a visual representation of the configuration.
## Show
- `terraform show`
Show the current state or a saved plan.
## State
- `terraform state list`
List resources in the Terraform state.
- `terraform state show [address]`
Show a resource in the Terraform state.
## Import
- `terraform import [address] [id]`
Import existing infrastructure into Terraform.
## Output
- `terraform output`
Read an output from a state file.
## Workspace
- `terraform workspace list`
List all workspaces.
- `terraform workspace select [name]`
Select a workspace.
- `terraform workspace new [name]`
Create a new workspace.
## Providers
- `terraform providers`
Show the providers required for this configuration.
## Modules
- `terraform get`
Download and update modules mentioned in the configuration.
## Debugging
- `terraform console`
Interactive console for Terraform interpolations.
- `terraform debug`
Debug output management (set `TF_LOG` environment variable for more details).
## Documentation
- `terraform doc`
Generate documentation from Terraform modules.