
Aws Ec2 Setup
This handles the full EC2 setup workflow from security groups and IAM roles to instance launch and auto-scaling configuration. You get CLI commands for the basics, plus Terraform configs and user data scripts in the reference guides. Most useful when you're spinning up web servers, API backends, or batch processing infrastructure and need the standard security group rules, monitoring, and scaling setup. The examples cover the boring but critical stuff like limiting SSH access to your IP and attaching IAM roles instead of embedding credentials. It's fairly comprehensive for common EC2 patterns, though you'll still need to customize networking and storage for your specific workload.
- skills.sh installs
- 470
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill aws-ec2-setup --agent claude-codeInstalls into .claude/skills of the current project.
Files
AWS EC2 Setup
Table of Contents
Overview
Amazon EC2 provides resizable compute capacity in the cloud. Launch and configure virtual servers with complete control over networking, storage, and security settings. Scale automatically based on demand.
When to Use
- Web application servers
- Application backends and APIs
- Batch processing and compute jobs
- Development and testing environments
- Containerized applications (ECS)
- Kubernetes clusters (EKS)
- Database servers
- VPN and proxy servers
Quick Start
Minimal working example:
# Create security group
aws ec2 create-security-group \
--group-name web-server-sg \
--description "Web server security group" \
--vpc-id vpc-12345678
# Add ingress rules
aws ec2 authorize-security-group-ingress \
--group-id sg-0123456789abcdef0 \
--protocol tcp \
--port 80 \
--cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress \
--group-id sg-0123456789abcdef0 \
--protocol tcp \
--port 443 \
--cidr 0.0.0.0/0
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Security, AI & Agent Building, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Email Service Integration470
- Infrastructure Monitoring470
- Angular Module Design469
- Pull Request Automation468
- Database Monitoring467
- Idempotency Handling467
- Session Management466
- Query Caching Strategies465
- Risk Assessment465
- Error Tracking463
- Spring Boot Application463
- Code Metrics Analysis462
- Health Check Endpoints461
- Serverless Architecture461
- Transaction Management461
- Webhook Integration461
- Secrets Rotation459
- Runbook Creation458
- Deployment Documentation457
- Stored Procedures457
- Autoscaling Configuration456
- Profiling Optimization456
- Cpu Profiling455
- Security Documentation455