-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Speed up by caching plugins and providers #34
Comments
Comment by @anubhavmishra Some providers are versioned and people might request two different versions of the same provider. Do we account for that? Just a question. |
Comment by @lkysow Yeah terraform names the plugin files depending on the version so we can have multiple files cached and tf will just use whatever version it needs |
Comment by @automaticgiant can we not just use https://www.terraform.io/docs/configuration/providers.html#provider-plugin-cache ? |
Comment by @lkysow Nice! I didn't know that was possible. I think it probably makes sense to always execute |
Can this be made the default? Why does this basic feature have to be configured on every server, dev machine, and docker container where terraform is used? PS: Sorry, if this came across as a rant, I'm likely in a bad mood. I tried rephrasing the sentence to be as neutral as possible. |
This is the default in Atlantis. |
Add ability to verify webhook secret. Fixes runatlantis#34
Issue by @lkysow
Monday Sep 04, 2017 at 01:47 GMT
Migrated from hootsuite/atlantis#141
Why was it migrated?
With the latest terraform >= 0.9 providers come as plugins that need to be downloaded. Right now, we're using
terraform init
which downloads the plugins into the current directory under.terraform/plugins/{os}_{runtime}
for every project.If we move the downloaded plugin to
~/.terraform.d/plugins/
(or~/.terraform.d/plugins/{os}_{runtime}
then terraform won't download the plugin again for any project.So my proposed solution is:
terraform init
, check if there are any files in{pwd}/.terraform/plugins/os_runtime
other thanlock.json
. If so, move all of them to~/.terraform.d/plugins/
.Now tf will check
~/.terraform.d/plugins/
before downloading any plugins so it will be back up to speed. Since tf will download any plugins that aren't already existing, we can rely on it to do the downloading.The text was updated successfully, but these errors were encountered: