Editing Terraform
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | [[wikipedia:Terraform (software)]] ( | + | [[wikipedia:Terraform (software)]] (2014) is an open-source [[infrastructure as code]] software. |
− | + | ||
− | + | ||
− | |||
* [[Terraform Cloud]] (September 2019) | * [[Terraform Cloud]] (September 2019) | ||
* [[Terraform Enterprise]] | * [[Terraform Enterprise]] | ||
− | * [[Terraform | + | * [[Terraform Registry]] |
+ | == Technical characteristics == | ||
+ | * [[HCL]]2 based | ||
+ | * Types: strings, number, bool, list, maps, set, tuple, object, any and null ([[Terraform 0.12]]) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== Supported platforms/providers == | == Supported platforms/providers == | ||
− | * [[AWS]]: [[AWS EKS]] | + | * [[AWS]]: [[AWS EKS]] |
+ | * [[GCP]] | ||
+ | * [[IBM Cloud]] | ||
+ | * [[DigitalOcean]] | ||
+ | * [[Azure]]: [[Azure Stack]], [[AzureRM]] | ||
+ | * [[OpenStack]] | ||
+ | * [[ServiceNow]] | ||
+ | * [[F5 Networks]] | ||
+ | * [[Nutanix]] | ||
+ | * [[Tecent Cloud]] | ||
+ | * [[Helm]] | ||
+ | * [[Oracle OCI]] | ||
+ | * [[Brightbox]] | ||
+ | * [[RightScale]] | ||
+ | * [[Linode]] | ||
+ | * [[SkyTap]] | ||
+ | * [[UCloud]] | ||
+ | * [[Hedvig]] | ||
+ | * [[Zabbix]] | ||
+ | |||
+ | == Installation == | ||
+ | * [[macOS]]: <code>[[brew]] install terraform</code>. | ||
+ | * [[Ubuntu]]: <code>snap install terraform</code> | ||
+ | |||
+ | |||
+ | Review version: | ||
+ | terraform -v | ||
+ | Terraform v0.13.5 | ||
− | + | == Running terraform == | |
+ | [[terraform init]] | ||
+ | [[terraform plan]] | ||
+ | [[terraform apply]] | ||
+ | [[terraform remote config]] | ||
− | + | [[terraform destroy]] | |
− | == | + | == Common Terraform commands<ref>https://www.terraform.io/docs/commands/index.html</ref> == |
+ | <pre> | ||
+ | apply Builds or changes infrastructure | ||
+ | console Interactive console for Terraform interpolations | ||
+ | destroy Destroy Terraform-managed infrastructure | ||
+ | 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 new or existing Terraform configuration | ||
+ | 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 Terraform Enterprise 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 | ||
+ | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | == | + | == Activities == |
− | + | # Read Terraform blog: https://www.hashicorp.com/blog/category/terraform/ | |
− | + | # Read Terraform: Up & Running, 2nd edition Early Release is now available! https://blog.gruntwork.io/terraform-up-running-2nd-edition-early-release-is-now-available-b104fc29783f | |
− | + | # [[Terraform: Hello_world.tf]] | |
− | + | # [[Terraform, read files]] | |
− | |||
− | |||
− | |||
− | == Related | + | == Related == |
− | * [[HCL]], [[HCL]]2 | + | * [[HCL]], [[HCL]]2 |
− | * | + | * <code>terraform_remote_state</code> |
− | * | + | * <code>count</code> parameter for iterations |
− | + | * [[Remote state backends to manage Terraform state]] | |
− | * [[Terraform | + | * [[Terragrunt]] |
− | * [[Terragrunt | ||
* Releases: https://github.com/hashicorp/terraform/releases | * Releases: https://github.com/hashicorp/terraform/releases | ||
− | + | * [[Terraform libvirt provider]] | |
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{terraform}} | * {{terraform}} | ||
+ | * {{IaC}} | ||
+ | * {{Cloud}} | ||
[[Category:Infrastructure as Code]] | [[Category:Infrastructure as Code]] | ||
− | |||
[[Category:Cloud computing]] | [[Category:Cloud computing]] |
Advertising: