lleps/terraform-validator

Force TFSTATE check by clicking button

Closed this issue · 1 comments

Changes required:

  • Add boolean validating, and show some loading signs? The PATCH /tfstate/{id}/forcecheck?
    That returns some error? like a long-running endpoint? Another one non-blocking, a flag forceCheck to check in the next iteration. That can be read by the frontend to show a spinner, or something like that.
    Also, some error reporting if the check fails, Report the aws error as "error" or whathever.
    Necessary.

How to handle validation errors:

  1. The program exited with non-0 error code? There was some error during execution.
  • New flag to tfstate: forcedValidation. Must execute this until the validation ends.
  • if some error occurs during the validation, save in the output as "Error:" and parse it accordingly.
  • Return the error output in the API properly
  • Handle error cases in the frontend as well.
lleps commented

done