11

We're using Terraform to manage our AWS infrastructure and the state itself is also in AWS. We've got 2 separate accounts for test and prod and each has an S3 bucket with the state files for those accounts.

We're not setting up alternate regions for disaster recovery and it's got me wondering if the region the terraform S3 bucket is in goes down then we won't be able to deploy anything with terraform.

So what's the best practice for this? Should we have a bucket in every region with the state files for the projects in that region but then that doesn't work for multi-region deployments.

you are viewing a single comment's thread
view the rest of the comments
[-] nomecks@lemmy.world 3 points 9 months ago

Using TF Cloud or TF Enterprise is best practice. They keep all the states secure in one place.

[-] dbx12@programming.dev 1 points 9 months ago

That's just moving the problem somewhere else isn't it? Unless tf cloud does keep multi region backups of states.

this post was submitted on 25 Sep 2023
11 points (100.0% liked)

DevOps

1573 readers
2 users here now

DevOps integrates and automates the work of software development (Dev) and IT operations (Ops) as a means for improving and shortening the systems development life cycle.

Rules:

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS