On Friday, June 9, 2017 at 5:44:58 AM UTC-4, Danny Rehelis wrote:
Is it possible to update...
As a general statement, "no". When you declare a resource, you're telling Terraform, when it's done, that a resource should exist with that value.
"Terraform, when you finish, this DNS A record must exist." The existence of another declaration for the same DNS name ("before" and "after" don't really matter to Terraform, depends_on is just an ordering constraint) doesn't imply "change" or "the previous one is wrong", it's trying to tell Terraform "apples are both red and green" and it doesn't understand how to do it.
(This is different from these declarations being "commands", like, well, pretty much every other system; if I used something like the equivalent Ansible route53 module I could make the change as you're describing, but Ansible couldn't automatically destroy the DNS record when I was done with the project, double-check that the DNS record existed before running the project, or reorder execution to ensure the DNS record existed before anything else used it.)