AWS EC2 Setup

AWS EC2 Setup

Guides an AI agent to launch and configure AWS EC2 instances with security groups, IAM roles, key pairs, AMIs and auto-scaling, using the CLI and Terraform.

Skill files6 files

references/

scripts/

templates/

SKILL.md97 lines
1
---
2
name: aws-ec2-setup
3
description: >
4
Launch and configure EC2 instances with security groups, IAM roles, key pairs,
5
AMIs, and auto-scaling. Use for virtual servers and managed infrastructure.
6
---
7
8
# AWS EC2 Setup
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
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.
21
22
## When to Use
23
24
- Web application servers
25
- Application backends and APIs
26
- Batch processing and compute jobs
27
- Development and testing environments
28
- Containerized applications (ECS)
29
- Kubernetes clusters (EKS)
30
- Database servers
31
- VPN and proxy servers
32
33
## Quick Start
34
35
Minimal working example:
36
37
```bash
38
# Create security group
39
aws ec2 create-security-group \
40
--group-name web-server-sg \
41
--description "Web server security group" \
42
--vpc-id vpc-12345678
43
44
# Add ingress rules
45
aws ec2 authorize-security-group-ingress \
46
--group-id sg-0123456789abcdef0 \
47
--protocol tcp \
48
--port 80 \
49
--cidr 0.0.0.0/0
50
51
aws ec2 authorize-security-group-ingress \
52
--group-id sg-0123456789abcdef0 \
53
--protocol tcp \
54
--port 443 \
55
--cidr 0.0.0.0/0
56
57
aws ec2 authorize-security-group-ingress \
58
--group-id sg-0123456789abcdef0 \
59
--protocol tcp \
60
--port 22 \
61
--cidr YOUR_IP/32
62
63
// ... (see reference guides for full implementation)
64
```
65
66
## Reference Guides
67
68
Detailed implementations in the `references/` directory:
69
70
| Guide | Contents |
71
|---|---|
72
| [EC2 Instance Creation with AWS CLI](references/ec2-instance-creation-with-aws-cli.md) | EC2 Instance Creation with AWS CLI |
73
| [User Data Script](references/user-data-script.md) | User Data Script |
74
| [Terraform EC2 Configuration](references/terraform-ec2-configuration.md) | Terraform EC2 Configuration |
75
76
## Best Practices
77
78
### ✅ DO
79
80
- Use security groups for network control
81
- Attach IAM roles for AWS access
82
- Enable CloudWatch monitoring
83
- Use AMI for consistent deployments
84
- Implement auto-scaling for variable load
85
- Use EBS for persistent storage
86
- Enable termination protection for production
87
- Keep systems patched and updated
88
89
### ❌ DON'T
90
91
- Use overly permissive security groups
92
- Store credentials in user data
93
- Ignore CloudWatch metrics
94
- Use outdated AMIs
95
- Create hardcoded configurations
96
- Forget to monitor costs
97

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…