Differences between revisions 11 and 12
Revision 11 as of 2022-05-17 02:53:57
Size: 895
Editor: PieterSmit
Comment:
Revision 12 as of 2024-04-17 03:16:35
Size: 1222
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
== Terraform Cloud ==
 * On local machine can debug with remotestate.tf file.
   * remotestate.tf {{{
terraform {
  backend "remote" {
    hostname = "app.terraform.io"
    organization = "MyOrg"
    workspaces {

      name = "<workspace-name-in-tf-cloud>"
    }
  }
}
}}}

== tfwsitch Terraform switch ==

Cloud/Terraform

Terraform Cloud

  • On local machine can debug with remotestate.tf file.
    • remotestate.tf

      terraform {
        backend "remote" {
          hostname     = "app.terraform.io"
          organization = "MyOrg"
          workspaces {
      
            name = "<workspace-name-in-tf-cloud>"
          }
        }
      }

tfwsitch Terraform switch

  • 2020- Install/switch with https://github.com/warrensbox/terraform-switcher/releases

    • Download the linux_64 bit tgz
    • sudo chown pieter /usr/local/bin
    • unzip and copy to /usr/local/bin tfswitch_202012_v0.9.934
      • tar -xvvzf terraform-switcher_0.9.934_linux_amd64.tar.gz
      • cp tfswitch /usr/local/bin/tfswitch_202012_v0.9.934
    • run tfswitch and select terraform version

Graph Terragrunt/Terraform

  • terragrunt/terraform graph
    • get dot tool  apt install graphviz 

  •  terragrunt graph | tee /dev/tty | dot -Tsvg -o graph-$(date -I) 


CategoryTerraform

Cloud/Terraform (last edited 2024-04-17 03:16:35 by PieterSmit)