-
Notifications
You must be signed in to change notification settings - Fork 60
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
Superfluous $$'s and quotes #13
Comments
Hi @bedge, thanks for the report! I'm guessing you are using It's a valid use-case and something the tool absolutely should be able to support - however, we'll likely need to make the tool a bit more smart to do this well. I'll try to look into this and if it's more or less straightforward might have a fix for this soon. PRs are obviously also very much appreciated! Some analysis where the current behaviour comes from:
|
Hi @flosell, yes, you are entirely correct. Makes complete sense given that I'm misusing the utility. Here's a fe wmore use cases I can think of - Or, as a vsc or intellij plugin where you could highlight the heredoc in the editor, give it a name (for the aws_iam_policy_document) and have it do the transformation in-place in the editor. Regardless, there's nothing else like this, and even with the manual tweaks, it's a big time saver and deserves more widespread adoption. Your effort is very much appreciated. |
Hi @bedge thanks for the feedback! I've improved the dollar-sign escaping a bit so it doesn't escape terraform interpolations anymore. That's now released as version 1.5.0 so if you have some time, give it a try and let me know if it improves the situation. For some of the other cases you mentioned:
|
Hi @flosell, Thanks for the link on the hashicorp VCS plugin info. I had read previously that they had little interest in owning it. I was also sharding my loyalties between vsc and intellij as their TF plugin is 0.12 compatible today. Fantastic to see the continued interest in these small (albeit less so as time goes on) but vital tools. |
Thanks again for the feedback! I'll close this issue here, in favour of the more specific issues on the topic. |
Found a couple of cases where there's extra $'s and "'s being added.
Here's a sample input json:
and the resulting aws_iam_policy_document:
Here's the diff of manual edits needed to fix the output:
The text was updated successfully, but these errors were encountered: