Terraform cheat sheet
Commands
- `terraform graph`
- `webgraphviz.com` - to copy paset 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 stap
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.