Terraform

From wikieduonline
Revision as of 11:41, 3 October 2020 by Welcome (talk | contribs) (→‎Related)
Jump to navigation Jump to search

Technical characteristics

  • HCL2 based
  • Types: strings, number, bool, list, maps, set, tuple, object, any and null (Terraform 0.12)


Supported platforms/providers

Installation

  • macOS: brew install terraform. Review version: terraform -v


Running terraform

Common Terraform commands[1]

    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


Activities

Related

  • HCL, HCL2
  • terraform_remote_state
  • count parameter for iterations
  • remote state backends to manage Terraform state
  • Terragrunt

See also

  • https://www.terraform.io/docs/commands/index.html
  • Advertising: