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

Direnv with Terraform 0.12 #500

Merged
merged 4 commits into from
Jul 31, 2019
Merged

Direnv with Terraform 0.12 #500

merged 4 commits into from
Jul 31, 2019

Conversation

osterman
Copy link
Member

@osterman osterman commented Jul 16, 2019

what

  • Use an empty cache folder to initialize module

why

  • Terraform 0.12 no longer allows initialization of folders with even dot files =(
  • Example of how to use direnv with terraform 0.12

usage

export TF_MODULE_CACHE=.module
mkdir -p ${TF_MODULE_CACHE}

@osterman osterman marked this pull request as ready for review July 24, 2019 17:28
@Nuru
Copy link
Sponsor Contributor

Nuru commented Jul 25, 2019

How does this work with Cloud Posse's typical make reset?

## Reset this project
reset:
	rm -rf Makefile *.tf .terraform

@aknysh aknysh requested a review from Nuru July 30, 2019 22:16
@osterman
Copy link
Member Author

@Nuru in the new model, it would be

## Reset this project
reset:
	rm -rf ${TF_MODULE_CACHE}

@aknysh aknysh merged commit 5d81bdd into master Jul 31, 2019
@aknysh aknysh deleted the direnv-use-tf-0.12-support branch July 31, 2019 01:54
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.

3 participants