PRASHANTH PONUGOTI

Terraform Part8

Terraform and AWS EKS we’re going to create an EKS cluster using Terraform. We created the EKS cluster using both the AWS Management Console and EKS control, observing the numerous components involved, including worker nodes, configurations, and AWS-managed background processes. Managing configuration changes, such as modifying VPC settings, subnets, or worker nodes, requires manually adjusting […]

Terraform Part8 Read More »

Terraform Part7

Terraform Modules In Terraform, modules help structure our configuration by preventing it from being monolithic, meaning everything in a single file. Instead, we organize different parts of the configuration into logical groups and package them within folders, each representing a module. For example, a logical grouping of resources could include everything needed to create an

Terraform Part7 Read More »

Terraform Part6

Provisioners Terraform allows executing commands or shell scripts on provisioned virtual servers, such as EC2 instances, by passing user_data during creation. Many cloud providers, including AWS, Google Cloud, and Azure, support this functionality. However, it’s important to note that Terraform only provisions the infrastructure and passes the execution responsibility to the cloud provider. Once the

Terraform Part6 Read More »

Terraform Part5

EC2 on AWS using Terraform Overview Deploy an EC2 instance on AWS running a simple Docker container (Nginx). Create a custom VPC instead of using the default one. Set up a subnet in one Availability Zone (AZ) for a simple use case with one server. Connect the VPC to the Internet using an Internet Gateway,

Terraform Part5 Read More »

Terraform Part4

Terraform Variables: A Guide to Dynamic Infrastructure Configuration Terraform, a powerful Infrastructure as Code (IaC) tool, simplifies cloud resource provisioning by allowing infrastructure to be defined in code. One of Terraform’s key features is variables, which enable dynamic and reusable configurations. In this blog post, we’ll explore Terraform variables, their types, usage, and best practices.

Terraform Part4 Read More »

Terraform Part3

Resources and Data Sources Resources vs. Data Sources in Terraform Terraform provides two key constructs to manage infrastructure 1. Resources A resource in Terraform represents a cloud infrastructure component, such as an EC2 instance, a VPC, or a database. Resources are created, updated, and deleted based on the Terraform configuration file Example: Creating a new

Terraform Part3 Read More »

Terraform part-2

Providers in Terraform Install Terraform The official Terraform installation documentation is available at: Terraform Downloads Installation varies by OS: Linux/Mac: Use a package manager or download the binary. Windows: Download the binary and set it up manually.   Since Terraform is commonly used for automating AWS infrastructure, AWS will be used as an example for

Terraform part-2 Read More »

Terraform part-1

Introduction What is terraform? In today’s fast-paced DevOps landscape, automation is a necessity. Manual infrastructure management is time-consuming, error-prone, and lacks scalability. This is where Terraform, an Infrastructure as Code (IaC) tool, comes into play. Terraform simplifies the provisioning, management, and scaling of cloud and on-premise infrastructure using a declarative approach. Terraform is an open-source

Terraform part-1 Read More »

Docker Part-5

Docker Best Practices Docker Best Practices Use Official Docker Image as Base Image Instead of using Ubuntu as a base image and installing dependencies on it, take a base image (e.g., Node). This will have all dependencies installed and would have been made with best practices. Use Specific Image Versions If a version is not

Docker Part-5 Read More »