mcpField
A
aws-ec2-setup

aws-ec2-setup

github.com/aj-geddesCloud & DevOps373467 installsUpdated 34w ago
Repository

About aws-ec2-setup

aws-ec2-setup is a skill for planning and configuring Amazon EC2 instances. It provides AWS CLI and Terraform reference guides, use cases, and operational practices for teams setting up cloud compute.

Key features

  1. 01EC2 instance setup guidance
  2. 02AWS CLI and Terraform references
  3. 03Security group and IAM practices
  4. 04Monitoring and scaling recommendations

Use cases

  1. 01Launching web servers and APIs
  2. 02Setting up development or test environments
  3. 03Running batch and compute jobs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill aws-ec2-setup

After installing, type/aws-ec2-setupin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
ec2-instance-creation-with-aws-cli.md
terraform-ec2-configuration.md
user-data-script.md
scripts/
validate-config.sh
templates/
config-starter.yaml

Details

From the project README

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

aws ec2 authorize-security-group-ingress \
  --group-id sg-0123456789abcdef0 \
  --protocol tcp \
  --port 22 \
  --cidr YOUR_IP/32

// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
EC2 Instance Creation with AWS CLIEC2 Instance Creation with AWS CLI
User Data ScriptUser Data Script
Terraform EC2 ConfigurationTerraform EC2 Configuration

Best Practices

✅ DO
  • Use security groups for network control
  • Attach IAM roles for AWS access
  • Enable CloudWatch monitoring
  • Use AMI for consistent deployments
  • Implement auto-scaling for variable load
  • Use EBS for persistent storage
  • Enable termination protection for production
  • Keep systems patched and updated
❌ DON'T
  • Use overly permissive security groups
  • Store credentials in user data
  • Ignore CloudWatch metrics
  • Use outdated AMIs
  • Create hardcoded configurations
  • Forget to monitor costs

Comments

Markdown supported