While I like Terraform, using it to prevent vendor lock in is bul***it; The belief of preventing vendor lock in is a false promise of freedom framed by a non-issue.
Gatling allows the user (developer/operator) to record a series of actions in the browser of choosing. At the tempo of a real user, multiple steps, form input, reloads; all can be done because the test cases are being created by a real user in a real browser.
Did this during the afternoon at work, since they use Terraform (TF) pretty heavily I am getting familiar with it as much as possible. Enjoy! https://github.com/davidjeddy/wordpress-terraform