Created
January 7, 2020 17:15
-
-
Save bbkane/5bd2967ac06c0c4adaa70e371fe7f2c8 to your computer and use it in GitHub Desktop.
terraform crash on non-completely specified type
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
2020/01/07 09:12:50 [INFO] Terraform version: 0.12.18 | |
2020/01/07 09:12:50 [INFO] Go runtime version: go1.12.13 | |
2020/01/07 09:12:50 [INFO] CLI args: []string{"/usr/local/bin/terraform", "console"} | |
2020/01/07 09:12:50 [DEBUG] Attempting to open CLI config file: /Users/bkane/.terraformrc | |
2020/01/07 09:12:50 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/01/07 09:12:50 [INFO] CLI command args: []string{"console"} | |
panic: inconsistent map element types (cty.Map(cty.Object(map[string]cty.Type{"ttl":cty.Number, "values":cty.List(cty.String)})) then cty.Map(cty.Object(map[string]cty.Type{"ttl":cty.Number, "values":cty.Tuple([]cty.Type{cty.String, cty.String})}))) | |
goroutine 1 [running]: | |
github.com/zclconf/go-cty/cty.MapVal(0xc000536bf8, 0xc000536b00, 0xc00003ea40, 0x8, 0xc000536cd0) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/value_init.go:207 +0x538 | |
github.com/zclconf/go-cty/cty/convert.conversionObjectToMap.func2(0x2f65880, 0xc00000e120, 0x2750d20, 0xc0000a2690, 0xc0000d9b80, 0x2, 0x2, 0xa, 0x100398a, 0xc0000e2380, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion_collection.go:338 +0x6c3 | |
github.com/zclconf/go-cty/cty/convert.getConversion.func1(0x2f65880, 0xc00000e120, 0x2750d20, 0xc0000a2690, 0xc00007d6e0, 0x1, 0x1, 0x2750d20, 0xc0000a2690, 0xc0000d9ae0, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion.go:34 +0xef | |
github.com/zclconf/go-cty/cty/convert.conversionObjectToMap.func2(0x2f65880, 0xc00000e128, 0x2750d20, 0xc0000a26f0, 0xc00007d6e0, 0x1, 0x1, 0x47096d0, 0x0, 0x100bf98, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion_collection.go:330 +0x583 | |
github.com/zclconf/go-cty/cty/convert.getConversion.func1(0x2f65880, 0xc00000e128, 0x2750d20, 0xc0000a26f0, 0x0, 0x0, 0x0, 0xc0000d9b20, 0xc00007d6d0, 0x2f65840, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion.go:34 +0xef | |
github.com/zclconf/go-cty/cty/convert.retConversion.func1(0x2f65880, 0xc00000e128, 0x2750d20, 0xc0000a26f0, 0xc00007d6d0, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion.go:141 +0x6b | |
github.com/zclconf/go-cty/cty/convert.Convert(0x2f65880, 0xc00000e128, 0x2750d20, 0xc0000a26f0, 0x2f65840, 0xc00007d2e0, 0x0, 0x0, 0x0, 0xc000326370, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/public.go:51 +0x1af | |
github.com/hashicorp/terraform/configs.decodeVariableBlock(0xc0003cfba0, 0x0, 0x2a79467, 0x8, 0x1, 0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/named_values.go:107 +0x5c8 | |
github.com/hashicorp/terraform/configs.(*Parser).loadConfigFile(0xc0004a9fc0, 0xc00003e859, 0x7, 0x0, 0x1, 0x0, 0x0, 0x2) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/parser_config.go:96 +0x1c1e | |
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigFile(...) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/parser_config.go:22 | |
github.com/hashicorp/terraform/configs.(*Parser).loadFiles(0xc0004a9fc0, 0xc00007cef0, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/parser_config_dir.go:77 +0x343 | |
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigDir(0xc0004a9fc0, 0x2a71c6d, 0x1, 0x0, 0x1, 0x16, 0xc000537a00) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/parser_config_dir.go:37 +0x121 | |
github.com/hashicorp/terraform/command.(*Meta).loadSingleModule(0xc00058cd00, 0x2a71c6d, 0x1, 0x2f25040, 0x0, 0xc000151ad0, 0x18e6a42) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/meta_config.go:113 +0x136 | |
github.com/hashicorp/terraform/command.(*Meta).loadBackendConfig(0xc00058cd00, 0xc000042084, 0x2e, 0x0, 0x0, 0x0, 0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/meta_config.go:175 +0x43 | |
github.com/hashicorp/terraform/command.(*ConsoleCommand).Run(0xc00058cd00, 0xc0000d8010, 0x0, 0x0, 0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/console.go:51 +0x37d | |
github.com/mitchellh/cli.(*CLI).Run(0xc0001fca00, 0xc0001fca00, 0xc000537d90, 0x1) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/mitchellh/cli@v1.0.0/cli.go:255 +0x1f1 | |
main.wrappedMain(0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:238 +0xc34 | |
main.realMain(0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:102 +0xb4 | |
main.main() | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:38 +0x3b |
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
2020/01/07 09:12:50 [INFO] Terraform version: 0.12.18 | |
2020/01/07 09:12:50 [INFO] Go runtime version: go1.12.13 | |
2020/01/07 09:12:50 [INFO] CLI args: []string{"/usr/local/bin/terraform", "console"} | |
2020/01/07 09:12:50 [DEBUG] Attempting to open CLI config file: /Users/bkane/.terraformrc | |
2020/01/07 09:12:50 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/01/07 09:12:50 [INFO] CLI command args: []string{"console"} | |
panic: inconsistent map element types (cty.Map(cty.Object(map[string]cty.Type{"ttl":cty.Number, "values":cty.List(cty.String)})) then cty.Map(cty.Object(map[string]cty.Type{"ttl":cty.Number, "values":cty.Tuple([]cty.Type{cty.String, cty.String})}))) | |
goroutine 1 [running]: | |
github.com/zclconf/go-cty/cty.MapVal(0xc000536bf8, 0xc000536b00, 0xc00003ea40, 0x8, 0xc000536cd0) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/value_init.go:207 +0x538 | |
github.com/zclconf/go-cty/cty/convert.conversionObjectToMap.func2(0x2f65880, 0xc00000e120, 0x2750d20, 0xc0000a2690, 0xc0000d9b80, 0x2, 0x2, 0xa, 0x100398a, 0xc0000e2380, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion_collection.go:338 +0x6c3 | |
github.com/zclconf/go-cty/cty/convert.getConversion.func1(0x2f65880, 0xc00000e120, 0x2750d20, 0xc0000a2690, 0xc00007d6e0, 0x1, 0x1, 0x2750d20, 0xc0000a2690, 0xc0000d9ae0, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion.go:34 +0xef | |
github.com/zclconf/go-cty/cty/convert.conversionObjectToMap.func2(0x2f65880, 0xc00000e128, 0x2750d20, 0xc0000a26f0, 0xc00007d6e0, 0x1, 0x1, 0x47096d0, 0x0, 0x100bf98, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion_collection.go:330 +0x583 | |
github.com/zclconf/go-cty/cty/convert.getConversion.func1(0x2f65880, 0xc00000e128, 0x2750d20, 0xc0000a26f0, 0x0, 0x0, 0x0, 0xc0000d9b20, 0xc00007d6d0, 0x2f65840, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion.go:34 +0xef | |
github.com/zclconf/go-cty/cty/convert.retConversion.func1(0x2f65880, 0xc00000e128, 0x2750d20, 0xc0000a26f0, 0xc00007d6d0, 0x0, 0x0, 0x0, 0x0, 0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/conversion.go:141 +0x6b | |
github.com/zclconf/go-cty/cty/convert.Convert(0x2f65880, 0xc00000e128, 0x2750d20, 0xc0000a26f0, 0x2f65840, 0xc00007d2e0, 0x0, 0x0, 0x0, 0xc000326370, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/convert/public.go:51 +0x1af | |
github.com/hashicorp/terraform/configs.decodeVariableBlock(0xc0003cfba0, 0x0, 0x2a79467, 0x8, 0x1, 0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/named_values.go:107 +0x5c8 | |
github.com/hashicorp/terraform/configs.(*Parser).loadConfigFile(0xc0004a9fc0, 0xc00003e859, 0x7, 0x0, 0x1, 0x0, 0x0, 0x2) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/parser_config.go:96 +0x1c1e | |
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigFile(...) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/parser_config.go:22 | |
github.com/hashicorp/terraform/configs.(*Parser).loadFiles(0xc0004a9fc0, 0xc00007cef0, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, ...) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/parser_config_dir.go:77 +0x343 | |
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigDir(0xc0004a9fc0, 0x2a71c6d, 0x1, 0x0, 0x1, 0x16, 0xc000537a00) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/configs/parser_config_dir.go:37 +0x121 | |
github.com/hashicorp/terraform/command.(*Meta).loadSingleModule(0xc00058cd00, 0x2a71c6d, 0x1, 0x2f25040, 0x0, 0xc000151ad0, 0x18e6a42) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/meta_config.go:113 +0x136 | |
github.com/hashicorp/terraform/command.(*Meta).loadBackendConfig(0xc00058cd00, 0xc000042084, 0x2e, 0x0, 0x0, 0x0, 0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/meta_config.go:175 +0x43 | |
github.com/hashicorp/terraform/command.(*ConsoleCommand).Run(0xc00058cd00, 0xc0000d8010, 0x0, 0x0, 0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/console.go:51 +0x37d | |
github.com/mitchellh/cli.(*CLI).Run(0xc0001fca00, 0xc0001fca00, 0xc000537d90, 0x1) | |
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/mitchellh/cli@v1.0.0/cli.go:255 +0x1f1 | |
main.wrappedMain(0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:238 +0xc34 | |
main.realMain(0x0) | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:102 +0xb4 | |
main.main() | |
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:38 +0x3b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment