-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[terraform/output] invalid character 'm' after array element #1453
Comments
I can confirm that the issue that I reported HERE still persists even after the fix. |
Hey, What version of Terraform are you using? |
In my case, I tested with Terraform 1.9.3 and 1.9.5 |
Do you have some sort of alias or wrapper around the Terraform binary? To be honest, it seems like the Terraform binary is not receiving the |
You are absolutely right, because I forgot to mention that in my case I'm using Terragrunt (v0.64.4) as a wrapper, Not sure if @ryehowell is using a wrapper as well or not. I don't have access to my laptop now, but will try to share an example later if still needed. |
Yes, terragrunt is being used with the test execution. |
You don’t have any custom alias in your shell for Terragrunt, right? Can you confirm that when you are running the output, the Terraform binary is set to Terragrunt? I have quite a few tests using outputs and cannot reproduce your issue. Is there a chance you could share the HCL output file (with mocked data) and the test showing how you are using the code? |
Describe the bug
When calling the
OutputRequired
function in theterraform/output
module, I am getting an Error:Received unexpected error: invalid character 'm' after array element
.This error looks to have been reported in this Issue, but continues to persist.
To Reproduce
Run the following internal test
Offending line
Result:
--- FAIL: TestIntegrationDestroy (537.03s) output.go:36: Error Trace: /Users/me/go/pkg/mod/github.com/gruntwork-io/terratest@v0.47.2/modules/terraform/output.go:36 /Users/me/src/github.com/gruntwork/terraform-aws-ci/test/destroy_test.go:240 /Users/me/go/pkg/mod/github.com/gruntwork-io/terratest@v0.47.2/modules/test-structure/test_structure.go:30 /Users/me/src/github.com/gruntwork/terraform-aws-ci/test/destroy_test.go:207 Error: Received unexpected error: invalid character 'm' after array element Test: TestIntegrationDestroy FAIL
Expected behavior
A clear and concise description of what you expected to happen.
Nice to have
Versions
Additional context
terratest
versionsv0.47.1
andv0.47.2
14.2.1 (23C71)
When debugging locally
The text was updated successfully, but these errors were encountered: