github.com/jzbruno/terraform@v0.10.3-0.20180104230435-18975d727047/website/upgrade-guides/0-9.html.markdown (about) 1 --- 2 layout: "downloads" 3 page_title: "Upgrading to Terraform 0.9" 4 sidebar_current: "upgrade-guides-0-9" 5 description: |- 6 Upgrading to Terraform v0.9 7 --- 8 9 # Upgrading to Terraform v0.9 10 11 Terraform v0.9 is a major release and thus includes some changes that 12 you'll need to consider when upgrading. This guide is meant to help with 13 that process. 14 15 The goal of this guide is to cover the most common upgrade concerns and 16 issues that would benefit from more explanation and background. The exhaustive 17 list of changes will always be the 18 [Terraform Changelog](https://github.com/hashicorp/terraform/blob/master/CHANGELOG.md). 19 After reviewing this guide, we recommend reviewing the Changelog to check on 20 specific notes about the resources and providers you use. 21 22 ## Remote State 23 24 Remote state has been overhauled to be easier and safer to configure and use. 25 **The new changes are backwards compatible** with existing remote state and 26 you'll be prompted to migrate to the new remote backend system. 27 28 An in-depth guide for migrating to the new backend system 29 [is available here](/docs/backends/legacy-0-8.html). This includes 30 backing up your existing remote state and also rolling back if necessary. 31 32 The only non-backwards compatible change is in the CLI: the existing 33 `terraform remote config` command is now gone. Remote state is now configured 34 via the "backend" section within the Terraform configuration itself. 35 36 **Example configuring a Consul remote backend:** 37 38 ``` 39 terraform { 40 backend "consul" { 41 address = "demo.consul.io" 42 datacenter = "nyc3" 43 path = "tfdemo" 44 } 45 } 46 ``` 47 48 **Action:** Nothing immediately, everything will continue working 49 except scripts using `terraform remote config`. 50 As soon as possible, [upgrade to backends](/docs/backends/legacy-0-8.html). 51 52 ## State Locking 53 54 Terraform 0.9 now will acquire a lock for your state if your backend 55 supports it. **This change is backwards compatible**, but may require 56 enhanced permissions for the authentication used with your backend. 57 58 Backends that support locking as of the 0.9.0 release are: local files, 59 Amazon S3, HashiCorp Consul, and Terraform Enterprise (atlas). If you don't 60 use these backends, you can ignore this section. 61 62 Specific notes for each affected backend: 63 64 * **Amazon S3**: DynamoDB is used for locking. The AWS access keys 65 must have access to Dynamo. You may disable locking by omitting the 66 `lock_table` key in your backend configuration. 67 68 * **HashiCorp Consul**: Sessions are used for locking. If an auth token 69 is used it must have permissions to create and destroy sessions. You 70 may disable locking by specifying `lock = false` in your backend 71 configuration. 72 73 **Action:** Update your credentials or configuration if necessary.