Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to compress state file when using gcs remote state #24162

Open
diraol opened this issue Feb 19, 2020 · 0 comments
Open

Add possibility to compress state file when using gcs remote state #24162

diraol opened this issue Feb 19, 2020 · 0 comments

Comments

@diraol
Copy link

diraol commented Feb 19, 2020

Current Terraform Version

v0.11.14 and v0.12.12

Use-cases

Similarly to #20328, it would be awesome to be able to handle terraform state files in a compressed way (while storing or retrieving it from the remote backend). In some cases this can save tons of MBs per execution, increasing speed (by reducing the number of transferred bytes) and reducing costs (bandwidth). Especially in large projects.

Proposal

terraform {
  backend "gcs" {
    bucket  = "my-bucket"
    prefix  = "terraform/state"
    compression = true
  }
}

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants