From 0a136d33c7f2486a4ffa615e878066f7d1c45858 Mon Sep 17 00:00:00 2001 From: James Green Date: Wed, 11 Oct 2023 17:11:28 +0100 Subject: [PATCH] Updated bucket & dyanmo name for Terraform state The s3 bucket and dyanmo DB tables was not created in IAC in the shared services AWS account. To resolve this we created a new S3 bucket and dynmo DB table within IAC and copied the contents of the old IAC bucket to the new bucket --- .gitignore | 3 ++- main.tf | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ea83f60..4276471 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ terraform.tfstate *.crt *.tfvars *.tfstate.* -.infracost/ \ No newline at end of file +.infracost/ +.terraform-version diff --git a/main.tf b/main.tf index 776af61..3e148bb 100644 --- a/main.tf +++ b/main.tf @@ -1,7 +1,7 @@ terraform { backend "s3" { - bucket = "staff-infrastructure-monitoring-cluster-tf-state" - dynamodb_table = "staff-infrastructure-monitoring-cluster-tf-lock-table" + bucket = "staff-ci-infrastructure-client-monitoring-cluster-tf-state" + dynamodb_table = "staff-ci-infrastructure-client-monitoring-cluster-tf-lock-table" region = "eu-west-2" } }