diff --git a/README.md b/README.md index a136415..95d887e 100644 --- a/README.md +++ b/README.md @@ -5431,6 +5431,25 @@ terraform state mv As such, tfstate shouldn't be stored in git repositories. secured storage such as secured buckets, is a better option. +
+Which command is responsible for creating state file?
+ + - terraform apply file.terraform + - Above command will create tfstate file in the working folder. +
+ +
+By default where does the state get stored?
+ + - The state is stored by default in a local file named terraform.tfstate. +
+ +
+Can we store tfstate file at remote location? If yes, then in which condition you will do this?
+ + - Yes, It can also be stored remotely, which works better in a team environment. Given condition that remote location is not publicly accessible since tfstate file contain sensitive information as well. Access to this remote location must be only shared with team members. +
+
Mention some best practices related to tfstate