I'm asking you guys, how to set up Terraform in AWS the "right way." What I meant by that is, 2 years ago I graduated with no Terraform knowledge and once I got hired I started writing Terraform scripts but only for 6 months, there was a senior dev who was no longer with us, but he did the initial set up in AWS so that every time we committed a TF script into AWS CodeCommit and then we build the scripts in the said repo using AWS CodeBuild, the infrastructure (i remember it was AWS Lambda, Glue, DynamoDB, Cognito, a bunch of Python code) was deployed without AWS CodeDeploy.
Now, how do i set up the way he did? Do i just simply need to create codecommit and codebuild and start committing TF scripts into codecommit, build, and thats it? Or do i need to spin an EC2 instance?