Last active
August 17, 2019 05:07
-
-
Save acobaugh/656d671c13adfa83a3492ceb0bfe188f to your computer and use it in GitHub Desktop.
Terraform get only symlinks first missing instance of local module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% TF_LOG=trace tf get | |
2019/08/17 01:01:33 [INFO] Terraform version: 0.12.6 | |
2019/08/17 01:01:33 [INFO] Go runtime version: go1.12.7 | |
2019/08/17 01:01:33 [INFO] CLI args: []string{"/usr/bin/terraform", "get"} | |
2019/08/17 01:01:33 [DEBUG] Attempting to open CLI config file: /home/acobaugh/.terraformrc | |
2019/08/17 01:01:33 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/08/17 01:01:33 [INFO] CLI command args: []string{"get"} | |
2019/08/17 01:01:33 [TRACE] ModuleInstaller: installing child modules for . into .terraform/modules | |
2019/08/17 01:01:33 [DEBUG] Module installer: begin acm | |
2019/08/17 01:01:33 [TRACE] ModuleInstaller: Module installer: acm 2.2.0 already installed in .terraform/modules/acm/terraform-aws-modules-terraform-aws-acm-1318df0 | |
2019/08/17 01:01:33 [DEBUG] Module installer: begin cdn | |
2019/08/17 01:01:33 [TRACE] ModuleInstaller: cdn address "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" will be handled by go-getter | |
2019/08/17 01:01:33 [DEBUG] will download "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" to .terraform/modules/cdn | |
2019/08/17 01:01:33 [TRACE] go-getter detectors rewrote "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" to "file:///home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" | |
2019/08/17 01:01:33 [TRACE] fetching "file:///home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" to ".terraform/modules/cdn" | |
Downloading /home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn for cdn... | |
2019/08/17 01:01:33 [TRACE] ModuleInstaller: cdn "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" was downloaded to .terraform/modules/cdn | |
2019/08/17 01:01:33 [DEBUG] Module installer: cdn installed at .terraform/modules/cdn | |
2019/08/17 01:01:33 [DEBUG] Module installer: begin cdn-user | |
- cdn in .terraform/modules/cdn | |
2019/08/17 01:01:33 [TRACE] ModuleInstaller: Module installer: cdn-user <nil> already installed in .terraform/modules/cdn-user | |
2019/08/17 01:01:33 [DEBUG] Module installer: begin developer | |
2019/08/17 01:01:33 [TRACE] ModuleInstaller: developer address "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" will be handled by go-getter | |
2019/08/17 01:01:33 [DEBUG] will download "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" to .terraform/modules/developer | |
2019/08/17 01:01:33 [TRACE] go-getter detectors rewrote "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" to "file:///home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" | |
2019/08/17 01:01:33 [TRACE] copying previous install .terraform/modules/cdn to .terraform/modules/developer | |
Downloading /home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn for developer... | |
2019/08/17 01:01:33 [TRACE] ModuleInstaller: developer "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" was downloaded to .terraform/modules/developer | |
2019/08/17 01:01:33 [DEBUG] Module installer: developer installed at .terraform/modules/developer | |
2019/08/17 01:01:33 [TRACE] modsdir: writing modules manifest to .terraform/modules/modules.json | |
- developer in .terraform/modules/developer | |
% ls -l .terraform/modules | |
total 16 | |
drwx------ 3 acobaugh acobaugh 4096 Aug 17 00:54 acm | |
lrwxrwxrwx 1 acobaugh acobaugh 56 Aug 17 01:01 cdn -> /home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn | |
drwx------ 3 acobaugh acobaugh 4096 Aug 17 00:54 cdn-user | |
drwx------ 2 acobaugh acobaugh 4096 Aug 17 01:01 developer | |
-rw------- 1 acobaugh acobaugh 578 Aug 17 01:01 modules.json | |
% rm -rf .terraform/modules/developer | |
% TF_LOG=trace tf get | tee trace2.log | |
2019/08/17 01:05:08 [INFO] Terraform version: 0.12.6 | |
2019/08/17 01:05:08 [INFO] Go runtime version: go1.12.7 | |
2019/08/17 01:05:08 [INFO] CLI args: []string{"/usr/bin/terraform", "get"} | |
2019/08/17 01:05:08 [DEBUG] Attempting to open CLI config file: /home/acobaugh/.terraformrc | |
2019/08/17 01:05:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/08/17 01:05:08 [INFO] CLI command args: []string{"get"} | |
2019/08/17 01:05:08 [TRACE] ModuleInstaller: installing child modules for . into .terraform/modules | |
2019/08/17 01:05:08 [DEBUG] Module installer: begin acm | |
2019/08/17 01:05:08 [TRACE] ModuleInstaller: Module installer: acm 2.2.0 already installed in .terraform/modules/acm/terraform-aws-modules-terraform-aws-acm-1318df0 | |
2019/08/17 01:05:08 [DEBUG] Module installer: begin cdn | |
2019/08/17 01:05:08 [TRACE] ModuleInstaller: Module installer: cdn <nil> already installed in .terraform/modules/cdn | |
2019/08/17 01:05:08 [DEBUG] Module installer: begin cdn-user | |
2019/08/17 01:05:08 [TRACE] ModuleInstaller: Module installer: cdn-user <nil> already installed in .terraform/modules/cdn-user | |
2019/08/17 01:05:08 [DEBUG] Module installer: begin developer | |
2019/08/17 01:05:08 [TRACE] ModuleInstaller: developer address "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" will be handled by go-getter | |
2019/08/17 01:05:08 [DEBUG] will download "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" to .terraform/modules/developer | |
2019/08/17 01:05:08 [TRACE] go-getter detectors rewrote "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" to "file:///home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" | |
2019/08/17 01:05:08 [TRACE] fetching "file:///home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" to ".terraform/modules/developer" | |
2019/08/17 01:05:08 [TRACE] ModuleInstaller: developer "/home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn" was downloaded to .terraform/modules/developer | |
Downloading /home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn for developer... | |
2019/08/17 01:05:08 [DEBUG] Module installer: developer installed at .terraform/modules/developer | |
2019/08/17 01:05:08 [TRACE] modsdir: writing modules manifest to .terraform/modules/modules.json | |
- developer in .terraform/modules/developer | |
% ls -l .terraform/modules | |
total 12 | |
drwx------ 3 acobaugh acobaugh 4096 Aug 17 00:54 acm | |
lrwxrwxrwx 1 acobaugh acobaugh 56 Aug 17 01:01 cdn -> /home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn | |
drwx------ 3 acobaugh acobaugh 4096 Aug 17 00:54 cdn-user | |
lrwxrwxrwx 1 acobaugh acobaugh 56 Aug 17 01:05 developer -> /home/acobaugh/work/eit/terraform-modules/tf-aws-swe-cdn | |
-rw------- 1 acobaugh acobaugh 578 Aug 17 01:05 modules.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment