Its all about HashiCorp Certified Terraform Associate Exam!!!

The Terraform Associate certification is for operations, IT, or devops professionals who know the basic concepts and skills associated with open source HashiCorp Terraform. Qualified candidates may…

Read More

Terraform Modules Tutorials and Complete Guide

Terraform Modules explained!!!‘ How to use one module’s variable in another module in terraform? Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert…

Read More

Example of Terraform Code for Lab and Demo

Example Code of Terraform AWS VPC Terraform Hello world Program Terraform example program for aws_security_group, aws_instance and provisioner Working with Terraform AWS provider, resources aws_key_pair Rajesh KumarI’m…

Read More

Terraform Errors and Solutions Database

Terraform Error: Key is not in valid OpenSSH public key format Terraform Error: Invalid reference Terraform Error: Invalid variable name Terraform Error: Failed to read ssh private…

Read More

Terraform Install Ansible and Run Playbook Example

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Terraform Implicit and Explicit Dependencies

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Terraform Output Variable Tutorials with Example

Terraform will store hundreds or even thousands of attribute values for all the defined resources in our infrastructure in state file. An outputed attributes can not only…

Read More

Terraform Tutorials: Variables – Data Type – Boolean

The last of the available variable types is boolean. They give the option to employ simple true or false values. For example, you might wish to have…

Read More

Terraform Tutorials: Variables – Data Type – Map

In this example, the instance_tags variable is defined with a type of map(string), and it is given a default value of { Name = “my-instance” }. The…

Read More

Example of terraform terraform.tfvars

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Terraform variable using TF_VAR environment variables example

How to set Terraform Variables in Windows? Terraform will read environment variables in the form of TF_VAR_name to find the value for a variable. For example, the…

Read More

Terraform variable using anyotherfile.tfvars example

This example shows how to keep Terraform variable values in a custom file such as anyotherfile.tfvars and load it with terraform apply -var-file=”anyotherfile.tfvars”. Unlike terraform.tfvars, a file…

Read More

Terraform variable using command line example

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Terraform Tutorials: Variables – Data Type – String

In this example, the instance_name variable is defined with a type of string, and it is given a default value of “my-instance”. The AWS provider is then…

Read More

Terraform Example Code for Hello world Program

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Terraform example program for aws_security_group, aws_instance and provisioner

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Terraform Error: Key is not in valid OpenSSH public key format

Code Error Solutions: Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices….

Read More

Terraform state explained!!!

By – christophchamp Terraform keeps the remote state of the infrastructure It stores it in a file called terraform.tfstate There is also a backup of the previous state in terraform.tfstate.backup When you execute terraform…

Read More

Terraform Project – Assignment – Exercise – Lab#2: Modules

How to submit Assignment? Please submit assignment @https://www.debug.school/ and POST url share in the comments of this post. Project 1 – Create a terraform Module in which…

Read More

Terraform Project – Assignment – Exercise – Lab#3: Mixed

How to submit Assignment? Please submit assignment @https://www.debug.school/ and POST url share in the comments of this post. Exercise 1 – Write a terraform configuration file to…

Read More

Terraform Advance Workflow loop explained!!!

validate – Validates the Terraform files init – Init. Initialize the (local) Terraform environment. Usually executed only once per session. providers – Prints a tree of the…

Read More

Decide factor to write Terraform Module or not?

Terraform modules are reusable configuration units. They let you manage pieces of infrastructure as a single package you can call and define multiple times in the main…

Read More

Terraform Environment Variables Exaplained!

Terraform has many environment variables which can be used to customize various aspects of its behavior of terraform. However all are optional, i.e None of these environment…

Read More

Terraform Tutorials: Variables – Data Type – List

In this example, the security_groups variable is defined with a type of list(string), and it is given a default value of [“default”]. The AWS provider is then…

Read More

Terraform Tutorials: Variables – Data Type – Number

In this example, the instance_count variable is defined with a type of number, and it is given a default value of 1. The AWS provider is then…

Read More

Terraform: run code after resources is created using using remote-exec provisioners

The chef, file, local-exec, puppet, remote-exec, provisioner invokes a script on a remote resource only after it is created. Thus, if you add provisioner code after “terraform…

Read More

Terraform Error: Invalid reference

Solution: Declare variable with var. such as name = “${var.reponame}” instead of name = “${reponame}” Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I…

Read More

Terraform Error: Invalid variable name

Solution You must not use following variables. These names are reserved for meta-arguments in module configuration blocks, and cannot be declared as variable names. source version providers count for_each lifecycle depends_on locals Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical…

Read More

Terraform Error: Failed to read ssh private key: no key found

Solutions private_key – The contents of an SSH key to use for the connection. These can be loaded from a file on disk using the file function….

Read More

Understanding local-exec provisioner in terraform

Terraform Provisioners can be used to do specific actions on the local machine or on a remote machine in order to prepare servers or other infrastructure resources….

Read More