What is our primary use case?
The usual use cases for HashiCorp Terraform that I work with mostly include automating tasks such as provisioning resources and creating resources over the clouds. If we want to create an EC2 instance on AWS, we have to log into EC2 and follow specific steps for creating instances. Creating thousands of EC2 instances with the same configuration requires repeating those steps, which can lead to mistakes. But using HashiCorp Terraform helps us by enabling infrastructure as code, allowing us to create infrastructure using code.
We can write simple code, and based on that, we can create multiple instances with a single run of code.
HashiCorp Terraform also supports multi-cloud developments, allowing us to work with AWS, Azure, Google, and Oracle simultaneously. It enables immutable infrastructure, and after HashiCorp Terraform creates resources, a state file is generated that stores metadata, which we can control using version control, allowing us to revert to previous versions if needed.
What is most valuable?
The most valuable features or capabilities of HashiCorp Terraform include automation, multi-cloud support, version control of state files, environment management, and support for third-party services such as databases and monitoring.
The open-source nature of HashiCorp Terraform is important for accessing community contributions and tools as it is free to use. The community-driven development means there is a large and active community of contributors worldwide. HashiCorp Terraform works with multiple providers such as AWS, Azure, and GCP, and it can also support custom providers, which is a significant advantage.
What needs improvement?
HashiCorp Terraform could be improved by enhancing security around state files, as it stores sensitive information such as passwords and secrets within them. If someone acquires a state file, they can access those secrets. HashiCorp Terraform should implement better security measures to keep sensitive information hidden from unauthorized users.
For how long have I used the solution?
I have been working with HashiCorp Terraform for more than three years.
What do I think about the stability of the solution?
HashiCorp Terraform is stable and reliable as long as we maintain the state file correctly.
What do I think about the scalability of the solution?
HashiCorp Terraform's scalability is straightforward because we can utilize a variable called count to scale our resources easily.
Which solution did I use previously and why did I switch?
Before HashiCorp Terraform, I did not use a different solution for the same use cases. AWS has a service called CloudFormation that performs similar functions, but it is specific to AWS. However, HashiCorp Terraform is applicable worldwide, and I haven't used anything else, so I don't have experience with other solutions.
How was the initial setup?
I participated in the initial setup and deployment of HashiCorp Terraform. Knowing the requirements is essential for what we need to create using HashiCorp Terraform. If we're beginners, it's necessary to follow HashiCorp's documentation to understand what is needed, allowing us to create Terraform modules and files easily. For me, it isn't a big deal; we just need to gather and analyze the necessary information to proceed.
What other advice do I have?
We have developed one solution using HashiCorp Terraform.
HashiCorp Terraform's state management capabilities are the main key point because whatever HashiCorp Terraform creates is stored in a state. Managing this state file is crucial. We can manage it either locally or remotely, but using local storage can lead to failures, and we might lose our state file.
Best practice is to store it remotely, such as on AWS S3 or Azure storage blobs, and we must maintain versions of the state file. This allows us to revert to previous states in version control if there are issues with the current state.
HashiCorp Terraform's modular architecture is beneficial because I have created a module for EC2 instances. When a team member wants to create an EC2 instance, they can utilize my module without recreating it. This approach follows the DRY principle (do not repeat yourself), achieving simplicity and reducing code repetition.
On a scale of one to ten, I rate HashiCorp Terraform an eight out of ten.
Which deployment model are you using for this solution?
Public Cloud
If public cloud, private cloud, or hybrid cloud, which cloud provider do you use?
Amazon Web Services (AWS)