vault-guides
vault-guides copied to clipboard
Fix Invalid multi-line string on line 13
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.