
Table of Content What is user_data in Terraform? When to use user_data in Terraform? Terraform user_data : How to execute shell script inside EC2 instance using? How to accomplish common tasks - Folder creation, Package installation with Terraform user_data How to use ${file("")} function with user_data? …
Read More
It is generally not recommended to commit .tfstate files to Git or any other version control system. .tfstate files contain sensitive information about the infrastructure managed by Terraform, including the current state of resources and the configurations used to create them. If these files are committed to version …
Read More
To import an existing infrastructure resource into Terraform, you can use the terraform import command. This command allows you to take an existing resource that was created outside of Terraform and bring it under Terraform management. In this blog, we will take two examples - How to import EC2 Instance? How to import …
Read More
Why do we need an SSL Certificate for an Application Load Balancer (ALB) in AWS? SSL certificates are used to establish secure connections between clients and servers over the internet. They are particularly important for protecting sensitive information, such as login credentials or financial data, when it is …
Read More
Testing infrastructure as code (IaC) involves verifying the functionality and behavior of the code used to manage and provision infrastructure in a cloud environment. IaC allows organizations to automate the provisioning and management of their infrastructure, which can improve efficiency, reduce errors, and enable …
Read More
To remove a resource from the Terraform state, you can use the $ terraform state rm command. This command allows you to remove resources from the Terraform state file.
- How to remove a single resource from terraform state file? Here are the steps which you should follow before you remove any resource - List the …
Read More
Terraform null_resource is one of the features which is underused by the DevOps professional. When I looked at Terraform's documentation for null_resource I felt they have not put much effort into explaining null_resource in more detail. But when I tried the null_resource by myself I really felt to use it more often …
Read More
In a Terraform project there are situations where a Developer feels a need to pre-check if the resource exists or not and many times I also wondered if is it possible to check the existence of the resource to avoid the duplicity of the resource. In this blog, we are gonna see - Why it is not possible to decide …
Read More
Working on a cloud platform always sounds interesting but what if you have some framework where you can automate your cloud infrastructure. In this article, we are going to see How to set up your first Virtual Machine on Google Cloud The platform using Terraform This article is aimed at the beginner who is just …
Read More
In programming world we have concept of variables, similar to that in Terraform we also have concept of Terraform Locals. What is Terraform locals? Here is an very basic example code which show - "How to create locals in Terraform?" 1## Example of local with static value 23locals { 4my_local = …
Read More