Managing multiple sites with terraform & State Files

Hi Community,

I need to ask question about managing multiple sites on Cloudflare with Terraform. I have like 10 websites that I needed to manage with preferably with terraform.

  • My main question is that how to manage terraform state files with Cloud like s3 bucket. Do I need to create 10 state files on s3 bucket or only needed one? Second question do I need to create 10 Repos at Git to manage the configuration files or one repo with like 10 different folders to manage all my websites?

Any developer/expert who is managing same kind of environment kindly guide me here please. Thank you.