masterleros / bash-devops-libs

Bash DevOps libraries
Apache License 2.0
2 stars 2 forks source link

helping to have a option if you already have a backend #25

Closed dodopontocom closed 4 years ago

dodopontocom commented 4 years ago

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)

masterleros commented 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)