Skip to main content

Posts

Showing posts from 2025

Install pip on Windows

If you haven't downloaded get-pip.py yet: You need to download this file from the official pip website or use curl in your command prompt. Using curl (recommended): Open Command Prompt and type: DOS curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py This will download the file to your current directory in the Command Prompt. Manual Download: Go to https://bootstrap.pypa.io/get-pip.py in your web browser, right-click on the page, select "Save as...", and save the file as get-pip.py to a location you can easily navigate to (e.g., your Downloads folder, or a dedicated Python projects folder). The file is in a different directory: You might have downloaded get-pip.py to your Downloads folder, your Desktop, or another location, but you're trying to run the command from C:\Users\gparn . Solution: Navigate to the directory where you saved get-pip.py in your Command Prompt using the cd (change directory) command. Example (if in Downloads): DOS cd C:\User...

What is Terraform?

  What is Terraform? Terraform is an open-source Infrastructure as Code (IaC) tool developed by HashiCorp . It allows you to provision, manage, and version infrastructure using a declarative configuration language. Key Concepts: 1. Providers Plugins that let Terraform interact with APIs of cloud platforms (e.g., AWS, Azure, GCP) or services (e.g., GitHub, Kubernetes). Example: provider "aws" { region = "us-west-2" } 2. Resources The building blocks of infrastructure (e.g., EC2 instances, S3 buckets). Declared using resource blocks. Example: hcl Copy Edit resource "aws_instance" "example" { ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" } 3. Variables Allow configuration flexibility. Declared using variable blocks and passed via CLI, .tfvars , or environment variables. 4. Outputs Provide information after a Terraform apply. Example: h Copy Edit output "instance_ip...