terraform get & referencing remote git repo

219 views
Skip to first unread message

tonym...@gumtree.com

unread,
Aug 19, 2016, 10:24:54 AM8/19/16
to Terraform
HI

I reference remote git modules in my terraform main.tf file. I noticed that `terraform get` does not result in my newly committed changes to the remote repo getting downloaded. I checked in `terraform plan`. I had to physically remove the .terraform directory. Is this delete necessary - should `terraform get` pull the latest changes?

Lowe Schmidt

unread,
Aug 19, 2016, 1:07:42 PM8/19/16
to terrafo...@googlegroups.com
Use terraform get -update 

https://www.terraform.io/docs/commands/get.html

"The command-line flags are all optional. The list of available flags are:

-update - If specified, modules that are already downloaded will be checked for updates and the updates will be downloaded if present."

--
Lowe Schmidt | +46 723 867 157

On 19 August 2016 at 16:24, <tonym...@gumtree.com> wrote:
HI

I reference remote git modules in my terraform main.tf file. I noticed that `terraform get` does not result in my newly committed changes to the remote repo getting downloaded. I checked in `terraform plan`. I had to physically remove the .terraform directory. Is this delete necessary - should `terraform get` pull the latest changes?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/459347c5-2fc9-4996-8d9b-563df841d92e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages