
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-codeInstalls 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- Azure App Service445
- Feature Flag System445
- Infrastructure Cost Optimization445
- Capacity Planning444
- Container Registry Management444
- Third Party Integration443
- Continuous Testing441
- Dependency Tracking440
- Artifact Management439
- Graceful Shutdown439
- Blue Green Deployment437
- Disaster Recovery Testing437
- Release Planning436
- Intermittent Issue Debugging433
- Server Side Rendering433
- Mocking Stubbing432
- Data Migration Scripts430
- Correlation Tracing429
- Synthetic Monitoring427
- Canary Deployment426
- Service Mesh Implementation426
- Azure Functions424
- Data Replication Setup424
- Graphql Implementation424