
For managing the cloud resources(EC2, S3 Bucket) on AWS you need to supply the AWS secrets(region, access_key, secret_key) inside the terraform file. You can use the plain text AWS Secrets inside your terraform file and it should work fine. But from the security standpoint, it is strongly discouraged to use plain text …
Read More
Terraform worksapces is a very logical concept where you can have multiple states of your infrastructure configuration. To put this in simple words if you are running an infrastructure configuration in development environment then the same infrastructure can be run in the production environment. The main benefit of …
Read More
Terraform file always grows as you span your infrastructure and add multiple servers to your cloud-hosted infrastructure. But imagine you have terraform file which contains lots of resources but you only do not want to apply the complete terraform configuration but instead, you just want to run one specific or some …
Read More
Terraform is an IaC(infrastructure as Code) framework for managing and provisioning the infrastructure but have you ever thought of creating only a single terraform configuration file for managing the complete cloud infrastructure. Well, it sounds insane because if you only have a single file for managing the complete …
Read More
This blog post will help you to understand - How to manage SSH Keys for your EC2 Instance on AWS How to manage SSH Keys for Virtual Machine on GCP When you work on cloud services such as AWS, Google Cloud you use Terraform to setup EC2 and VMs. But to access those instances(EC2, VMS) you need to setup the SSH Keys. …
Read More
Terraform Provisioners are used to performing certain custom actions and tasks either on the local machine or on the remote machine. The custom actions can vary in nature and it can be - Running custom shell script on the local machine Running custom shell script on the remote machine Copy file to the remote machine …
Read More
Terraform destroy will no doubt provide you a clean slate to work with your infrastructure but it is not needed to run terraform destroy before running terraform apply or plan commands. There is one caution while working with terraform destroy command, it is not advisable to run it on a production environment because …
Read More
The terraform error Your query returned no results. Please change your search criteria and try again can be misleading and can cause an increase in your debugging time with your Terraform configuration. I have also faced the same issue while I was trying to set up my aws_instance on AWS. But interestingly this issue …
Read More
Terraform data sources can be beneficial if you want to retrieve or fetch the data from the cloud service providers such as AWS, AZURE, and GCP. Most of the time when we use Terraform along with AWS/AZURE/GCP then we always send data in terms of instructions or configuration. But what if you want to get the …
Read More
Terraform resource Meta-Arguments can be useful while setting up your cloud infrastructure. The resource arguments depends_on, count, for_Each, provider, lifecycle has some features such as - You can create multiple aws_resource using the count for_each can be used for iteration and can also help you to create …
Read More