
Table of Content Why someone need to split the terraform main.tf into multiple files? How to split the main.tf file: A Step-by-Step Approach 2.1 Identify Resources and Data Sources 2.2 Create Separate .tf Files for Resources and Data Sources 2.3 Migrate Resource and Data Source Blocks into individual .tf files 2.4 …
Read More
- Terraform Variables Variables are an important part of Terraform because they let users change settings and make them more flexible and reusable. You can avoid hardcoding values in your Terraform configuration files by using variables. This makes your code more flexible. In this blog post we will focus on how to use …
Read More
- Introduction Infrastructure as code (IaC) is a key part of gaining efficiency, scalability, and manageability in the rapidly changing tech world of today. Many DevOps teams now use Terraform, which is a famous IaC tool. The Terraform lookup function for dynamic keys has become a powerful way to improve your IaC …
Read More
Introduction There are a couple of ways in which you can securely connect to a remote server using Ansible. Using the SSH Keys (Public, Private) Using the remote server password Both methods are widely used by DevOps practitioners, and both are secure. But still, if I would like to vote for Using the SSH keys for …
Read More
Table of Content What is YAML? Example of YAML? Why Ansible needs YAML? Example of Ansible Playbook written in YAML What are rules for writing Ansible Playbook using YAMLs? Advantages of YAML in Ansible YAML vs Other Data Serialization Formats What is YAML? YAML is a recipe for computers that helps them understand what …
Read More
This blog post will guide you on how to use Terraform-Provisioners to copy/upload files to EC2 as well as the S3 bucket. Table of Content Pre-requisites Setup AWS credentials in the Terraform file Setup an EC2 instance, a security group, and SSH key pair resources. Use file provisioner to upload the file to EC2 Upload …
Read More
In this blog post we will take a look on how to fix the issue of Error: Creating EC2 Subnet: InvalidSubnet.Range: The CIDR '100.1.1.0/24' is Invalid Error: creating EC2 Subnet: InvalidSubnet.Range: The CIDR '100.1.1.0/24' is invalid Table of Content Introduction Understanding the Error InvalidSubnet.Range Error CIDR …
Read More
I got stuck with the error InvalidParameter: Security group sg-08e153383fca86934 and subnet subnet-00e3adcfceb3cf8ee belong to different networks when I was working on one of AWS project where I need to set-up following using Terraform - VPC Subnet Internet Gate, NAT Route Table EC2 Instance Security group Here is the …
Read More
Cron jobs are undoubtedly among the easiest and most often used methods for task scheduling. It is easy to see why every Linux user is familiar with cron jobs: they are highly helpful Simple to set up Need very little maintenance. We will go through using Cron Jobs in Docker containers in this tutorial. Table of …
Read More
When working with Docker containers, one of the most common tasks is to copy files from the local host to a container that is already operating. In this post, we will explore a variety of methods for coping files from a local host to a Docker container that is already in operation. Table Of Content Copy file using the …
Read More