Skip to content

Commit

Permalink
chore: Update AWS S3 bucket names for Terraform state backend
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgaar committed Jul 27, 2024
1 parent 0ca9be2 commit 4ffef81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
awsEC2s
awsEC2s
IaC/aws/tofu/_provider.tf
20 changes: 11 additions & 9 deletions IaC/aws/tofu/_backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ resource "aws_s3_bucket" "state_backend" {

lifecycle {
prevent_destroy = false
#prevent_destroy = true
}
}

Expand Down Expand Up @@ -61,12 +62,13 @@ resource "aws_dynamodb_table" "tofu_backend_lock" {
}
}

terraform {
backend "s3" {
bucket = "tofu-backend-state"
key = "global/s3/terraform.tfstate"
region = "eu-west-1"
dynamodb_table = "tofu-state-lock"
encrypt = true
}
}
# TODO:
# terraform {
# backend "s3" {
# bucket = "tofu-backend-state"
# key = "global/s3/terraform.tfstate"
# region = "eu-west-1"
# dynamodb_table = "tofu-state-lock"
# encrypt = true
# }
# }

0 comments on commit 4ffef81

Please sign in to comment.