Posts

Showing posts with the label Python Script

Beyond the CLI: Building an Enterprise Terraform Impact Dashboard

Image
Stop Reading Raw JSON: Build an Enterprise Terraform Impact Dashboard As a Lead DevOps Architect, I often deal with infrastructure plans that touch hundreds of resources. Sifting through a standard terraform plan terminal output to find a single critical "delete" is like looking for a needle in a haystack. When you are managing complex infrastructure—like a technical cutover from Squid Proxy to Google Secure Web Proxy—the cognitive load is high. The risk of missing a "destroy" on a production database is a real threat to stability. The Problem: The "Wall of Text" Standard Terraform output is designed for logs, not for human auditing. In an enterprise environment, we face three main challenges: Risk Blindness: Critical resources (like RDS instances, S3 buckets, or IAM roles) look exactly like a minor tag update in the terminal. Scale Issues: Large plans (500+ changes) are impossible to review manually without ...

Terraform Plan Visualizer: Generate Beautiful HTML Reports with AI Analysis

A Complete Guide to Visualizing Terraform Changes Like a Pro A Complete Guide to Visualizing Terraform Changes Like a Pro Terraform plans are incredibly powerful, but they can quickly become overwhelming. When you are managing complex infrastructure across AWS, Azure, or GCP, reading raw command-line stdout or digging through hundreds of lines of nested JSON isn't practical—especially during peer architecture reviews or security compliance audits. In this guide, I'll show you how to transform raw Terraform plans into beautiful, professional HTML dashboards featuring optional AI-powered explanations using local LLMs (completely private and free). What you'll build: Interactive HTML dashboards of your changes, AI-generated plain-English explanations of impacts, color-coded resource states (Create/Update/Delete), and a fully responsive layout ready to share with your team. Why This Matters ...

AWS CLI Get Security Group ID with Name. Python Boto3 [ wild card support] Python Boto3

 """ Author Praveen This Simple Boto Script will list the AWS  security group with name provide [ Wildcard supported] """ import boto3 AWS_REGION = "us-west-2" fullauth = boto3.session.Session(profile_name='<YourProfile>') ec2 = fullauth.client('ec2' , region_name=AWS_REGION) group_name = '*<YourSearchString>' response = ec2.describe_security_groups(     Filters=[         dict(Name='group-name', Values=[group_name])     ] ) for securityGroup in response['SecurityGroups']:    print("SG ID: {}, Name: {}".format(securityGroup['GroupId'], securityGroup['GroupName'])) #This will list Security Group Name along with Security Group ID     print("SG ID: {}".format(securityGroup['GroupId'])) # This will List Only Security Group IDS