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

use the cached Terraform providers if available #282

Merged
merged 4 commits into from
Jul 12, 2021

Conversation

glennmusa
Copy link
Contributor

Description

Assigns the $TF_PLUGIN_CACHE_DIR to the plugin-dir=PATH terraform init option so that, in a disconnected state, the Terraform providers that are bundled by container build are used instead of querying out to the internet for them and/or their metadata.

If the $TF_PLUGIN_CACHE_DIR is not present on the environment executing Terraform, nothing changes.

Issue reference

The issue this PR will close: #275

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles or validates correctly
  • BASH scripts have been validated using shellcheck
  • All tests pass (manual and automated)
  • The documentation is updated to cover any new or changed features
  • Markdown files have been linted using the recommended linter. (See .vscode/extensions.json.)
  • Relevant issues are linked to this PR

@glennmusa glennmusa enabled auto-merge (squash) July 8, 2021 00:06
@glennmusa glennmusa merged commit d6a63e5 into main Jul 12, 2021
@glennmusa glennmusa deleted the glennmusa/useplugincache branch July 12, 2021 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supply a plugin-dir argument to the terraform initialization scripts
2 participants