As for example implementations review cloudposse in depth or take a look at the https://github.com/travis-ci/terraform-config repo.
This answer is skewed towards infrastructure as code. Often conflated are things such as configuration management & provisioning.