Infrastructure as a Code
The idea of the infrastructure as a code is writing all the required resources in a code and run this code in a cloud environment. One tools which available to accomplish this task is Terraform. If all your cloud computing uses AWS; Cloud Formation and AWS CDK are the two option to do the same tasks. There are some guidelines and best practice we follow to fully utilize Terraform. I always recommend to install after verifying your download fie using the checksums signature file which is signed by HashiCorp's GPG key. And in the past project, I utilize the module of Terraform and I create all the resources in the cloud environment inside my module. The module help you to enforce how the different resources are created. It help you to have a consistent format and set of properties. There are different resources how to create your resources in the cloud using Terramform. I will always check the Terrafom website what values and properties I will pass for creating resources depending on which cloud provider I will target to create my resources. I also refer this blog post.