pantsbuild / pants

The Pants Build System
https://www.pantsbuild.org
Apache License 2.0
3.35k stars 640 forks source link

Terraform stability for release #21119

Open lilatomic opened 5 months ago

lilatomic commented 5 months ago

Terraform is nearing being ready for a release from experimental. That will mean that we have all the functionality in place to provide a stable user frontend and decent user experience. There are things left to do:

tdyas commented 4 months ago

some way of ejecting from pants, so you can run manual steps. For example, sometimes you'll need to upgrade state or migrate backends (which has come up a few times). There are also importing resources and inspecting state. Pants doesn't have to have knobs for all of these, but can help in many ways (such as pants export mapping to terraform init; or pants run trying to pass in vars files)

See https://github.com/pantsbuild/pants/pull/13023 for a PR which would have added a tf-run goal to invoke Terraform with specified arguments.

tdyas commented 4 months ago

the TF backend is currently really slow because it doesn't cache providers

Are the provider downloaded to the sandbox currently? If so, can Terraform be configured to cache them elsewhere?

tdyas commented 4 months ago

https://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache seems relevant for configuring a shared Terraform plugin cache.