Watch this video on YouTube
Terraform cannot reason about what the provisioner does; hence, if a creation-time provisioner fails for a resource, Terraform will plan to destroy and recreate the resource upon the next terraform apply .