Closed dodopontocom closed 4 years ago
This is a good idea but it cannot be implemented on top of main init function as there are several backends out there, please check: https://www.terraform.io/docs/backends/types/ for reference.
What is possible is to create a separate function for each backend (i.e: init_gcp(), init_s3(), etc)
The idea here is to give the option to call terraform.init with bucket variables configuration. It is useful in my case that I do not want to use the terraform.createBucket And maybe it will be usefull for others providers such as AWS (I did not test)