Tips&Tricks - Terraform (en)

Commands

  • terraform graph
  • webgraphviz.com - to copy paste in the result of terraform graph to see it in a graphical view
  • terraform plan - shows what would be changed without actually applying it
  • terraform apply - is showing the plan and then applying it in one step

state handling of terraform

  • stores the state of the remote in local files
  • can be updated with a command (which one?)

aws

  • Do not use an elastic IP (eip) directly but instead use an aws_eip_association that assigns an eip to an instance. This way way we can change the instance at any time without loosing the IP.