equinix / terraform-equinix-metal-anthos-on-vsphere

[Deprecated] Automated Anthos Installation via Terraform for Equinix Metal with vSphere
https://registry.terraform.io/modules/equinix/anthos-on-vsphere/metal/latest
Apache License 2.0
62 stars 41 forks source link

terraform apply should fail on error #117

Closed dfong closed 2 weeks ago

dfong commented 3 years ago

currently, when "terraform apply" exits, there is no easy way to know whether the operation was truly successful (yielding a functioning cluster). it is common for terraform apply to exit with 0 status (success) even if some steps failed leading to a non-functional cluster.

ideally, the command shold exit 0 only if the cluster was correctly created.

if this cannot be achieved, then the sources should include some kind of test script that can be run to validate the cluster.

short of that, at least a script could be provided to scan the logfile for known fatal errors, while ignoring known "harmless" errors.