Posts

Showing posts with the label Python Script

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