Cloud Formation is a way of scripting infrastructure deployments. You can think of it as a way to script out all the infrastructure you need and then with a click of a button cloud formation will deploy it all for you. Even if you want to deploy multiple environments you can essentially replicate environments using cloud formation.
Most teams check-in their scripts into source control so that they have a re-usable script to deploy infrastructure.