From 9b790a8bf34363cb8bf90edc12b9e6ffc21ea0be Mon Sep 17 00:00:00 2001 From: Jocelyn Badgley Date: Mon, 21 Aug 2023 12:23:16 -0700 Subject: [PATCH] chore(terraform): add tfstate backup to s3 bucket --- terraform/versions.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terraform/versions.tf b/terraform/versions.tf index 09e02b5..7d0c594 100644 --- a/terraform/versions.tf +++ b/terraform/versions.tf @@ -11,6 +11,12 @@ terraform { version = ">= 2.0.0" } } + + backend "s3" { + bucket = "twipped-terraform" + key = "gdb/terraform.tfstate" + region = "us-east-1" + } required_version = ">= 0.13" }