Hacker News new | ask | show | jobs
by pearkes 4336 days ago
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.