You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apply succeeds even with "Error parsing JSON: invalid character '$' looking for beginning of value" with template for template_body of azurerm_template_deployment
#1025
Plan is successfully generated with the following message
Plan: 2 to add, 0 to change, 0 to destroy.
with no clue that there was an error unless, we take a look at the output for that specific resource, which has the following error
template_body: "Error parsing JSON: invalid character '$' looking for beginning of value"
The apply succeeds with all green and the corresponding resource also gets created, with the error in the output of the resource in the console as in the plan.
While it's annoying that the normalization can't return an error itself here, this sort of thing has been handled elsewhere by having the normalization produce an empty string and then having separate validation code that detects that and returns an real error. Perhaps a strategy like that could work here too.
Thanks for opening this issue. After checked, seems azurerm_template_deployment has been added validation function. So I assume the issue has gone and seems I cannot repro it anymore using latest azurerm provider after tested. Could you have a try with latest azurerm provider to check whether the issue still exists? Thanks.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked as resolved and limited conversation to collaborators
Nov 7, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue was originally opened by @puttagunta as hashicorp/terraform#17684. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version: 0.11.5
Terraform Configuration Files
Debug Output
Expected Behavior
If it is a legitimate error
should fail and
should also fail with a valid error message
Actual Behavior
Plan is successfully generated with the following message
Steps to Reproduce
do
References
#5462
The text was updated successfully, but these errors were encountered: