Description
We currently provide a simple guide on testing templates via CI/CD. We advise that our customers use a GitHub repo to version control their templates and validate changes with Terraform before promoting a new version.
However, terraform validate
is a relatively loose check for environment changes and won't always catch regressions. Template administrators often manually validate changes by simply creating a workspace and running one or two commonly used commands for the target template.
There is no simple way to do this programmatically with our API. An enterprise customer has requested that we add an endpoint to run a single command in a workspace and return its exit code. This would allow customers to run any number of test cases automatically before publishing a new template version.