Search Results for: terraform

Debugging/Logging in Terraform

Reading Time: 2 minutes Debugging is a very important part of developers’ life as it helps in understanding the root cause whenever any piece of code breaks! So, In this blog, we will understand how to set up the debugging while setting up an Infrastructure using terraform. Prerequisite Basic knowledge of Terraform Enable Debugging in Terraform! Terraform provides the options to enable detailed logging/debugging with the help of the Continue Reading

Terraform Basic Concepts

Reading Time: 4 minutes What is terraform? According to the official Terraform documentation, Terraform 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 an open-source IaC  (Infrastructure as Code) tool developed by HashiCorp.Terraform creates an execution plan that explains how it will get to the desired state and then implements Continue Reading

Build Infrastructure – Terraform GCP Example

Reading Time: 3 minutes Hi Readers, In this blog we will be looking about How to Build Build Infrastructure – Terraform GCP Example. We will be discussing about its basics and its key components. With Terraform installed, you are ready to create some infrastructure. Prerequisites A Google Cloud Platform account. If you do not have a GCP account, create one now. Terraform 0.15.3+ installed locally. Set up GCP After creating your GCP Continue Reading

How to use modules in Terraform?

Reading Time: 3 minutes In this blog, we will learn about terraform modules with the help of an example. What are modules? Modules in terraform, allow using various resources together as a group. Also, these resources are reusable. They are available to use for other configurations as well. A module can be any configuration file with a (.tf) extension in the directory. Every module usually contains 3 files- main.tf Continue Reading

How to run Terraform from Jenkins

Reading Time: 4 minutes In this blog, We will learn how to run terraform using Jenkins job. First, we need to know what is Jenkins?? Basically, Jenkins is a CI/CD tool. Jenkins is an open-source that is written in Java. Continuous Integration & Continuous Delivery are integral parts of DevOps. Therefore Jenkins is quite a famous tool. As they are used for integrating multiple stages of the methodology. We can see Continue Reading

When to go for ansible and when for terraform

Reading Time: 2 minutes Before we go with use-case of both terraform and ansible , lets first focus on basic . Ansible :- Ansible is the open source software configuration management tool that provide simple but poweful automation for cross-platform computer support . This allows you to configure not just one computer, but potentially a whole network of computer at once , using it require no programming skills . Continue Reading

Terraform: Loops with Count and Problems

Reading Time: 6 minutes In this blog, we are going to expand our Terraform toolbox with some more advanced tips & tricks, such as how to use loops with the count. We’ll also discuss some of Terraform’s weaknesses so we can avoid the most common problems. Introduction As we know, Terraform is a declarative language. Infrastructure-as-code in a declarative language tends to provide a more accurate about deployed items. Continue Reading

How to use Data Source in Terraform?

Reading Time: 3 minutes In this blog, we will be learning about what is data source and how to use it in terraform. What is Data Source? Data source in terraform relates to resources but only it gives the information about an object rather than creating one. It provides dynamic information about the entities we define outside of terraform. Data Sources allow fetching data about the infrastructure components’ configuration. Continue Reading

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

How to Deploy ElasticBeanstalk using Terraform

Reading Time: 4 minutes Hello Readers! In this blog we will see how we can deploy ElasticBeanstalk using terraform. In my previous blog we have seen how to deploy applications in Elastic Beanstalk. There we have seen how AWS takes care of all underlying resources so you don’t have to worry about anything. You can purely concentrate on writing your application code, package it and upload it. And EBS 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 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