orange-cloudfoundry / terraform-release

Terraform bosh release. enables terraform automation from bosh
Apache License 2.0
1 stars 0 forks source link

Add external storage #1

Open poblin-orange opened 3 years ago

poblin-orange commented 3 years ago

As of v1, terraform state can only be stored in bosh external disk (/var/vcap/store). This requires a persistent disk, and additional backup mechanism.

We should offer some remote terraform backend support.

gberche-orange commented 3 years ago

What about a new job property to let release users specify their own backend, e.g.

https://www.terraform.io/docs/backends/types/s3.html

terraform {
  backend "s3" {
    bucket = "mybucket"
    key    = "path/to/my/key"
    region = "us-east-1"
  }
}