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

Supply a plugin-dir argument to the terraform initialization scripts #275

Closed
glennmusa opened this issue Jul 6, 2021 · 0 comments · Fixed by #282
Closed

Supply a plugin-dir argument to the terraform initialization scripts #275

glennmusa opened this issue Jul 6, 2021 · 0 comments · Fixed by #282
Assignees
Labels
good first issue Good for newcomers

Comments

@glennmusa
Copy link
Contributor

Benefit/Result/Outcome
To deploy MLZ when disconnected from the internet.

Description
Today, due to same change beyond our knowledge, configuring Terraform to use the local Terraform provider cache will still pull the providers, however, Terraform CLI will still attempt to query for the provider metadata from the internet.

We'd like to provide a way to deploy completely disconnected from the internet. Setting the -plugin-dir=${TF_PLUGIN_CACHE_DIR} argument on any terraform init operations seems to solve this problem today.

There could be other ways to remediate this problem through .terraformrc or other configuration means, but for today, setting this argument seems to solve the problem.

Per our Dockerimage:

ENV TF_PLUGIN_CACHE_DIR=/usr/lib/tf-plugins

Acceptance Criteria

  • Set the TF_PLUGIN_CACHE_DIR when doing terraform init in apply, destroy, and initialization functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant