website: update upgrade guide

This commit is contained in:
Mitchell Hashimoto 2016-11-29 10:34:51 -08:00
parent 5ce7ff178b
commit 774cbb82fe
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 34 additions and 0 deletions

View File

@ -23,6 +23,40 @@ list of changes will always be the
After reviewing this guide, we recommend reviewing the Changelog to check on
specific notes about the resources and providers you use.
## Newlines in Strings
Newlines are no longer allowed in strings unless it is a heredoc or an
interpolation. This improves the performance of IDE syntax highlighting
of Terraform configurations and simplifies parsing.
**Behavior that no longer works in Terraform 0.8:**
```
resource "null_resource" "foo" {
value = "foo
bar"
}
```
**Valid Terraform 0.8 configuration:**
```
resource "null_resource" "foo" {
value = "foo\nbar"
value2 = <<EOF
foo
bar
EOF
# You can still have newlines within interpolations.
value3 = "${lookup(
var.foo, var.bar)}"
}
```
**Action:** Use heredocs or escape sequences when you have a string with newlines.
## Math Order of Operations
Math operations now follow standard mathematical order of operations.