Run arbitrary Terraform commands
Sometime the powerful support for Terraform is not enough.
Maybe a feature is not supported, or something is so out of the ordinary that access to the underlying tool is required.
In those cases one would want to have all the environment, secrets and correct execution in place.
For this there is the tfRun
task.
Pass the required command-line as the --cmdline
parameter and Gradle will set up everything and execute it.
$ ./gradlew tfRun --cmdline 'force-unlock -force LOCK_ID'