Search Results for: terraform

How to Setup Networks in AWS using Terraform

Reading Time: 3 minutes Hello Readers, In this blog we’ll see that how we can set-up OR create networks in AWS using Terraform. Before starting you must have Terraform, AWS CLI install on your local machine and they both must be configure.  SO LET’S GET START! It is easy to set-up Networks using terraform. In order to do so you should follow certain steps. These are as follows: Go 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

How to Setup IAM Roles in AWS using Terraform

Reading Time: 3 minutes Hello Readers, In this blog we’ll see that how we can set-up or create IAM roles in AWS using terraform. Before starting you must have Terraform, AWS CLI install on your machine and they both must be configure.  What is IAM Roles in AWS ? AWS Identity and Access Management (IAM) is a web service that you can use to securely control access to AWS Continue Reading

How to Setup Instance in AWS Using Terraform :

Reading Time: 3 minutes Hello Readers, I hope you all are doing so well. In this blog we will see that how we can set-up Instance in AWS using terraform. Before starting you must have Terraform, AWS CLI install on your machine and they both must be configure. So stay tuned with me. SO LET’S GET START!! It is easy to set-up Instance using terraform. In order to do so Continue Reading

How to create GKE cluster on GCP using Terraform

Reading Time: 4 minutes GCP is a cloud platform provided by Google. In this blog, we will see how we can provision GKE Google Kubernetes Engine on GCP by using Terraform. Kubernetes is a container orchestration system for managing container-based applications and automated software deployments & management. We will deploy a GKE cluster on GCP by using some Terraform script and modules. Prerequisites – GKE on GCP with Terraform 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

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

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

Fetch the latest AMI in AWS using terraform

Reading Time: 3 minutes Terraform provides us a way to fetch the latest AMI in AWS while deploying our VMs. With terraform, we can make use of data sources to pull the latest AMI. What is Amazon Machine Image(AMI) An Amazon Machine Image (AMI) is used in creating virtual machines in AWS. It is possible to launch different types of instances from a single AMI. It is fast and Continue Reading

Add AWS credentials in Terraform

Reading Time: < 1 minute Hi readers, in this blog we will discuss about the different ways to add aws credentials (access key and secret key) in a Terraform configuration file. There are many ways to do it. Lets discuss some of them. Add it to your configuration files while defining your variable This would be the most naive way to do it. You will add the values in the 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