Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Terraform saves partial state as it creates resources for these exact scenarios.

In your example, Terraform would create and save the ID of the server to state before going along to create the DNS record. If the DNS record failed to create for some external reason, the next `terraform apply` you ran would simply refresh the server and go on to create the DNS record.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: