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 s3 remote state #20328

Open
SebastianCzoch opened this issue Feb 13, 2019 · 1 comment
Open

Comments

@SebastianCzoch
Copy link

SebastianCzoch commented Feb 13, 2019

Current Terraform Version

Terraform v0.11.11

Use-cases

When s3 remote state is used on large platforms, running terraform on poor internet connection can be cumbersome, especially when terraform is used together with some automation tools (e.g. inventory for Ansible).

Proposal

Adding option to use compression (e.g. gzip) for state file.

terraform {
  backend "s3" {
    encrypt        = true
    bucket         = "my-awesome-terraform"
    dynamodb_table = "terraform-state-lock"
    region         = "eu-west-1"
    key            = "terraform.tfstate"
    compression    = true
  }
}

References

@internetstaff
Copy link

Why no love for this? :)

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