Search Results for: terraform

Quick start : Terratest with Terraform

Reading Time: 4 minutes Hi Readers, In this blog we will see how we can test our Terraform code that it applies all the infrastructure as per stated in the code. Terratest is a Go library developed at Gruntwork, that makes it easier to write automated tests for our infrastructure code. It provides a variety of helper functions and patterns for common infrastructure testing tasks but here we will be Continue Reading

Spinning up Terraform Configuration – 2

Reading Time: 4 minutes Hi Readers, In previous blog we discussed the basics of terraform and understood the cloud infrastructure. Now here we will understand how to spin up our first terraform configuration. In addition to that we will also see how to setup terraform in our local system. Terraform installation Terraform is available for all Operating systems i.e for Mac OS, Windows and Linux. HashiCorp distributes Terraform as Continue Reading

Terraform (Infrastructure as Code)

Reading Time: 4 minutes In this blog, we are going to create AWS infrastructure using Terraform. Basically, we can name it “Code as Infrastructure” So before moving to the setup let’s take a little introduction. Introduction: It is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions. It is created by hashicorp. The Continue Reading

Workspaces in Terraform

Reading Time: 3 minutes What Terraform Workspaces are? Terraform supports two concepts of workspaces: CLI workspace and Terraform Cloud/Enterprise workspace. This article is focused on CLI Workspaces also known as OSS Workspace. CLI workspaces are a feature that allows us to manage a single Terraform configuration and provision the resulting resources different time.This allows us to have similar group of resources without managing multiple stacks. To use CLI workspaces, we Continue Reading

Terraform Configurations for AWS infrastructure

Reading Time: 5 minutes What is Terraform? Terraform is an infrastructure as code (IaC) tool that allows you to build, change, and version infrastructure safely and efficiently. This includes low-level components such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc. Terraform configurations manages both existing service providers and custom in-house solutions. In this blog, we will look at the Continue Reading

How to use Terraform variables in different ways

Reading Time: 2 minutes Introduction to Terraform variables Just like in other technologies, variables let you customize your Terraform modules and resources without altering the modules’ code. Results you do not need to hard code just for a few tweaks in your resources. Using variables is very handy when you are creating the same resources but with different configurations. For example: S3 bucket for diffrent regions EC2 instances of Continue Reading

Introduction to Terraform – 1

Reading Time: 4 minutes Hi Readers, In this blog we will be looking about the WHAT? and WHY? of the Terraform. We will be discussing about its basics and its key components. Before jumping directly into Terraform, we need to understand the term Infrastructure. An Infrastructure in common language would be considered as the final output obtained after processing multiple different kinds of inputs. For instance: An Infrastructure for Continue Reading

How to use multiple GCP providers in Terraform

Reading Time: 3 minutes Terraform provides us a way to use multiple configurations for the same providers to deploy our resources. With terraform, we can make use of aliases to create multiple configurations for the same provider. Providers in terraform Providers are the heart of terraform. Terraform uses providers to interface/sync between the Terraform engine and the supported cloud platform. Terraform supports a large number of providers. e.g. AWS, Continue Reading

Understanding Infrastructure as Code (IaC) using Terraform: A QuickStart

Reading Time: 4 minutes As a DevOps Engineer, there might be a requirement of creating Infrastructure over various Cloud Providers including AWS, GCP or Azure. The ineffective way of doing it is simply going over the Provider console and manually create the infrastructure as per the requirement. Do you feel that its the correct way of doing it? Are you looking for a better solution? If your answer is Continue Reading

How to use Terraform Graph to visualize your execution plan

Reading Time: 3 minutes With terraform, we can generate a visual representation of either our configuration or execution plan. We can use terraform graph command to generate a visual representation. The output of the command is in DOT format, we can use tools like Graphviz to generate charts. Let’s Understand in detail. Explore the directory first! Let’s see what terraform configuration files are present in our working directory. By Continue Reading