vault-guides icon indicating copy to clipboard operation
vault-guides copied to clipboard

Fix Invalid multi-line string on line 13

Open callmefish opened this issue 2 years ago • 1 comments

For Terraform V1.3.~, pervious output.tf file will show the following error message after execute terraform apply.

Invalid multi-line string: Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.

One solution is to use %{if <BOOL>}/%{else}/%{endif} directive instead of conditional operator. And it may be more readable.

callmefish avatar Dec 31 '22 23:12 callmefish

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Dec 31 '22 23:12 hashicorp-cla