Introduction
When you use Terraform to manage infrastructure, you need a place to save the current state of your resources. The S3 backend lets you store this state file safely in an Amazon S3 bucket, so multiple people or systems can work together without conflicts.
When you want to share Terraform state files between team members safely.
When you want to keep your Terraform state file backed up and durable.
When you want to enable locking of the state file to prevent simultaneous changes.
When you manage infrastructure across multiple environments and want centralized state storage.
When you want to use Terraform Cloud features but prefer to keep state in your AWS account.