intuit / intuit/QuickFabric

Terraform apply fails due to jsondecode

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
35
Forks
19
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Unable to apply terraform
Error:
```Error: Error in function call

on main.tf line 270, in locals:
270: api_creds = fileexists(lookup(data.external.api.result, "file_path")) ? jsondecode(file(lookup(data.external.api.result, "file_path"))) : jsondecode("None")

Call to function "jsondecode" failed: invalid character 'N' looking for
beginning of value.
```

**To Reproduce**
```
cd QuickFabric/terraform
python3 terraform_wrapper.py apply -var-file=input.tfvars -var-file=secrets.tfvars
```

**Expected behavior**
Terraform apply should complete without any error.

**Desktop (please complete the following information):**
- OS: Macos
- Version
Terraform v0.12.17
+ provider.archive v1.3.0
+ provider.aws v2.55.0
+ provider.external v1.2.0
+ provider.local v1.4.0
+ provider.null v2.1.2
+ provider.template v2.1.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.