github.com/hugorut/terraform@v1.1.3/website/docs/language/upgrade-guides/0-9.mdx (about)

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