A cookiecutter template for bootstrapping a Terraform project my way. It closely follows the recommendations in the HashiCorp docs. I like putting my backends and environment variable files in directories, then I reference then during execution.
Install the latest Cookiecutter, I recommend using pipx:
pipx install cookiecutter
Now you can create your infrastructure in your existing project or use it to boostrap a repository.
cookiecutter https://github.com/phillipsj/cookiecutter-terraform.git