From e6acac7e7cb9159b358fec84823712255d3ffaa9 Mon Sep 17 00:00:00 2001 From: Bastian de Groot Date: Fri, 29 Mar 2019 08:31:30 +0100 Subject: [PATCH] remove tfstate ; add tf files to gitignore The gitignore block was added from here: https://github.com/github/gitignore/blob/master/Terraform.gitignore --- .gitignore | 30 +++++++++++++++++++ example/foo/terraform.tfstate.backup | 45 ---------------------------- 2 files changed, 30 insertions(+), 45 deletions(-) delete mode 100644 example/foo/terraform.tfstate.backup diff --git a/.gitignore b/.gitignore index 38ce427..726d6a5 100644 --- a/.gitignore +++ b/.gitignore @@ -121,3 +121,33 @@ dmypy.json # Pyre type checker .pyre/ + +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +# Crash log files +crash.log + +# Ignore any .tfvars files that are generated automatically for each Terraform run. Most +# .tfvars files are managed as part of configuration and so should be included in +# version control. +# +# example.tfvars + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* diff --git a/example/foo/terraform.tfstate.backup b/example/foo/terraform.tfstate.backup deleted file mode 100644 index 7d2de69..0000000 --- a/example/foo/terraform.tfstate.backup +++ /dev/null @@ -1,45 +0,0 @@ -{ - "version": 3, - "terraform_version": "0.11.11", - "serial": 4, - "lineage": "e761821e-b5bb-6abc-8e92-32effbd67763", - "modules": [ - { - "path": [ - "root" - ], - "outputs": { - "foos": { - "sensitive": false, - "type": "list", - "value": [ - { - "foo": "foo", - "index": "0" - } - ] - } - }, - "resources": { - "null_resource.foo_resource": { - "type": "null_resource", - "depends_on": [], - "primary": { - "id": "3493831143268423873", - "attributes": { - "id": "3493831143268423873", - "triggers.%": "2", - "triggers.foo": "foo", - "triggers.index": "0" - }, - "meta": {}, - "tainted": false - }, - "deposed": [], - "provider": "provider.null" - } - }, - "depends_on": [] - } - ] -}