Managing infrastructure state is a critical aspect of working with Terraform. As a project or team grows, so will the infrastructure state. With multiple developers accessing these resource configurations at the same time, maintaining the state of the infrastructure becomes the top priority. While there are benefits to using local state, managing your Terraform state from a remote source tends to offer a more secure, long-term solution.
By utilizing remote state, Terraform will store state in a remote source. This remote source can be accessed by members of a team and offer state locking features to avoid conflicts. It also will take advantage of the additional security provided by storage resources such as Google Cloud Storage buckets.
In this lab, you will configure a Terraform project to store and manage state from a remote Google Cloud Storage bucket.
Upon completion of this lab, you will be able to:
Familiarity with the following will be beneficial but is not required:
July 8th, 2024 - Updated instance image
June 9th, 2023 - Updated instance image
April 27th, 2023 - Updated theia to enable autosave