From 0dcd049ba1a7ee1ba80c4bc1ada768cbc9ead6af Mon Sep 17 00:00:00 2001 From: Manoj Date: Mon, 31 Oct 2016 23:33:33 +0530 Subject: [PATCH 1/2] Adding note on remote state --- website/source/intro/getting-started/build.html.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/website/source/intro/getting-started/build.html.md b/website/source/intro/getting-started/build.html.md index c1a30b0f12..46cca0891f 100644 --- a/website/source/intro/getting-started/build.html.md +++ b/website/source/intro/getting-started/build.html.md @@ -179,8 +179,11 @@ Terraform also puts some state into the `terraform.tfstate` file by default. This state file is extremely important; it maps various resource metadata to actual resource IDs so that Terraform knows what it is managing. This file must be saved and distributed -to anyone who might run Terraform. We recommend simply putting it -into version control, since it generally isn't too large. +to anyone who might run Terraform. This file generally isn't too large, +and for most simple setups, the file might be added to version control along +with rest of the Terraform code. For larger teams, it might be +beneficial to [setup remote state](https://www.terraform.io/docs/state/remote/index.html). + You can inspect the state using `terraform show`: From 32b81ab2090d780ba5d929aa816e7943f4ef1304 Mon Sep 17 00:00:00 2001 From: stack72 Date: Thu, 8 Dec 2016 12:53:34 +0100 Subject: [PATCH 2/2] docs: Update getting-started guide to suggest remote-state --- website/source/intro/getting-started/build.html.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/source/intro/getting-started/build.html.md b/website/source/intro/getting-started/build.html.md index 46cca0891f..f770b2228d 100644 --- a/website/source/intro/getting-started/build.html.md +++ b/website/source/intro/getting-started/build.html.md @@ -179,10 +179,10 @@ Terraform also puts some state into the `terraform.tfstate` file by default. This state file is extremely important; it maps various resource metadata to actual resource IDs so that Terraform knows what it is managing. This file must be saved and distributed -to anyone who might run Terraform. This file generally isn't too large, -and for most simple setups, the file might be added to version control along -with rest of the Terraform code. For larger teams, it might be -beneficial to [setup remote state](https://www.terraform.io/docs/state/remote/index.html). +to anyone who might run Terraform. It is generally recommended to +[setup remote state](https://www.terraform.io/docs/state/remote/index.html) +when working with Terraform. This will mean that any potential secrets +stored in the state file, will not be checked into version control You can inspect the state using `terraform show`: