aj-geddes avatar

Network Security Groups

Configures network security groups and firewall rules across AWS, GCP, and Kubernetes to control traffic flow and enforce network segmentation. You'll reach for this when setting up multi-tier applications, restricting database access, or implementing zero-trust networking. The reference guides cover Security Groups in AWS, Network Policies in Kubernetes, and GCP Firewall Rules with working YAML examples. The best practices section hammers home the important stuff: never expose databases to 0.0.0.0/0, document every rule's purpose, and use security group references instead of hardcoded IPs. It's comprehensive enough to get proper network isolation running without having to piece together documentation from three different cloud providers.

skills.sh installs
446
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill network-security-groups --agent claude-code

Installs into .claude/skills of the current project.

Files

Network Security Groups

Table of Contents

Overview

Implement network security groups and firewall rules to enforce least privilege access, segment networks, and protect infrastructure from unauthorized access.

When to Use

  • Inbound traffic control
  • Outbound traffic filtering
  • Network segmentation
  • Zero-trust networking
  • DDoS mitigation
  • Database access restriction
  • VPN access control
  • Multi-tier application security

Quick Start

Minimal working example:

# aws-security-groups.yaml
Resources:
  # VPC Security Group
  VPCSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: VPC security group
      VpcId: vpc-12345678
      SecurityGroupIngress:
        # Allow HTTP from anywhere
        - IpProtocol: tcp
          FromPort: 80
          ToPort: 80
          CidrIp: 0.0.0.0/0
          Description: "HTTP from anywhere"

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Security, AI & Agent Building, Marketing & SEO, Sales & Marketing
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258

Recommended

More Security
1davila7 avatarinformation-security-manager-iso27001davila7/claude-code-templatesSenior Information Security Manager specializing in ISO 27001 and ISO 27002 implementation for HealthTech and MedTech companies. Provides ISMS implementation, c428skills.sh installs
2syncfusion avatarsyncfusion-blazor-securitysyncfusion/blazor-ui-components-skillsConfigure Content Security Policy (CSP) for Syncfusion Blazor components across Blazor Server, WebAssembly, and Auto render modes � self-hosted and CDN scenario382skills.sh installs
3tech-leads-club avatarsecurity-best-practicestech-leads-club/agent-skillsPerform language and framework specific security best-practice reviews and suggest improvements. Use when the user explicitly requests security best practices g378skills.sh installs
4igorwarzocha avatarsecurity-nextjsigorwarzocha/opencode-workflowssecurity nextjs370skills.sh installs
5dfinity avatarcanister-securitydfinity/icskillsIC-specific security patterns for canister development in Motoko and Rust. Covers access control, anonymous principal rejection, reentrancy prevention (CallerGu324skills.sh installs
6sickn33 avatarsecurity-scanning-security-dependenciessickn33/antigravity-awesome-skillssecurity scanning security dependencies311skills.sh installs