How does Terragrunt handle backends?
IntermediateProductionState and Backends in Production
Answer
Its remote_state block generates a backend.tf per stack from a root template, deriving the key from the folder path (path_relative_to_include()), and can create the bucket automatically. That removes copy-pasted backend blocks across hundreds of stacks. The cost is one more tool and its own upgrade cycle.
More on State and Backends in Production
Why should Terraform state never be committed to Git?BeginnerHow do you bootstrap the remote backend, given the bucket must exist before Terraform can use it?IntermediateWhat does a hardened S3 state bucket look like?IntermediateWhat is the minimum IAM permission set for the S3 backend?IntermediateHow do you move from DynamoDB locking to S3 native locking in a live fleet?IntermediateState was deleted or corrupted. How do you recover?Advanced