paulpas/agent-skill-router/aws-cloudfront
Claude Code and agent skill by paulpas/agent-skill-router
- community
Checking that the SKILL.md file is still in the repository.
'"Configures CloudFront CDN for global content distribution with edge
Install
npx vskill@latest install paulpas/agent-skill-router/aws-cloudfrontSKILL.md
The same SKILL.md was published earlier as paulpas/agent-skill-router/aws-cloudfront.
CloudFront (Amazon CloudFront)
Distribute content globally with edge caching, DDoS protection, and SSL/TLS termination for improved performance and security.
TL;DR Checklist
- [ ] Use CloudFront for all static content (CSS, JS, images)
- [ ] Set appropriate cache TTLs based on content type
- [ ] Enable compression for text content
- [ ] Use Origin Access Identity (OAI) for S3 buckets
- [ ] Enable WAF for DDoS and attack protection
- [ ] Implement cache invalidation strategy
- [ ] Monitor cache hit ratio and improve
- [ ] Use SSL/TLS for all distributions
- [ ] Enable query string and cookie forwarding selectively
- [ ] Set up CloudWatch metrics and alarms
When to Use
Use CloudFront when:
- Serving static content globally
- Need DDoS protection
- Requiring content delivery close to users
- Building low-latency applications
- Reducing origin server load
- Streaming video content
Purpose and Use Cases
Primary Purpose: Cache and deliver content globally from edge locations with DDoS protection, SSL/TLS termination, and high performance.
Common Use Cases:
- Static Website — S3 origin with CloudFront CDN
- API Acceleration — CloudFront cache for API responses
- Video Streaming — Deliver video from edge locations
- DDoS Protection — AWS Shield Standard + WAF
- Application Acceleration — Reduce latency globally
Architecture Design Patterns
Pattern 1: S3 Static Website with CloudFront
Key Elements:
- S3 origin with OAI for secure access
- Default cache behavior with compression
- Multiple cache behaviors for different content types
- CloudFront logging to S3
- WAF for DDoS and attack protection
- CloudWatch metrics and alarms
Integration Approaches
1. Integration with S3
CloudFront + S3 enables:
- Static content caching at edge
- Reduced S3 API costs
- Origin Access Identity for security
2. Integration with ALB/API Gateway
CloudFront + ALB provides:
- Dynamic content caching
- Origin Shield for additional layer
- Request/response rewriting
3. Integration with ACM
ACM + CloudFront enables:
- SSL/TLS termination at edge
- Custom domain names
- Certificate management
4. Integration with WAF
WAF + CloudFront provides:
- DDoS protection
- Attack mitigation
- Rate limiting
Common Pitfalls
❌ Pitfall 1: Low Cache Hit Ratio
Problem: Most requests miss cache; high origin load.
Solution:
- Analyze query strings (cache key)
- Minimize cookies
- Extend TTLs for static content
- Use Origin Shield for additional caching layer
❌ Pitfall 2: Stale Content After Deploy
Problem: Users see old version after code deploy.
Solution:
- Implement cache invalidation in CI/CD
- Use versioned filenames (app.v1.js)
- Set appropriate TTLs per content type
❌ Pitfall 3: No Origin Failover
Problem: Origin down = CDN down (no cached fallback).
Solution:
- Configure multiple origins with failover
- Cache dynamic content briefly
- Implement error pages in S3
❌ Pitfall 4: Slow Origin Causing Slowness
Problem: Even cached requests slow if origin slow.
Solution:
- Use Origin Shield for additional caching
- Optimize origin performance
- Monitor origin latency
❌ Pitfall 5: No DDoS Protection
Problem: Large DDoS attacks overwhelm edge.
Solution:
- Enable AWS Shield Standard (automatic)
- Add WAF for application protection
- Monitor CloudFront metrics
Best Practices Summary
| Category | Best Practice | |
|---|---|---|
| Caching | High TTL for static; low for dynamic | |
| Hit Ratio | Monitor and optimize query strings | |
| Invalidation | Versioned filenames; CI/CD automation | |
| Security | WAF enabled; HTTPS only; OAI for S3 | |
| Performance | Origin Shield; compression enabled |
Related Skills
| Skill | Purpose | |
|---|---|---|
cncf-aws-s3 | Origin bucket for static content | |
cncf-aws-route53 | DNS alias to CloudFront | |
cncf-aws-acm | SSL/TLS certificates |
Core Workflow
- Assess Requirements — Understand the use case, scale, integration needs, and existing infrastructure. Checkpoint: Document requirements, constraints, and success criteria.
- Design Architecture — Plan component interactions, data flow, and deployment strategy using cloud-native best practices. Checkpoint: Verify the architecture addresses all requirements and follows CNCF conventions.
- Implement & Configure — Create manifests, configurations, and deployment scripts. Include resource limits, health checks, and observability hooks. Checkpoint: Validate all YAML against schema and test in a staging environment.
- Deploy & Monitor — Apply manifests to the cluster, verify component health, and confirm observability is working. Checkpoint: Confirm all pods/services are running, probes passing, and metrics/alerts configured.
Constraints
MUST DO
- Include at least one complete working YAML manifest example
- Note when content is auto-generated vs. manually verified
- Reference relevant CNCF project documentation
MUST NOT DO
- Deploy manifests without testing in a staging environment first
- Use deprecated API versions (e.g., apps/v1beta1)
- Omit resource limits and requests in Kubernetes manifests
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cncf/aws-cloudfront/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/paulpas/agent-skill-router/aws-cloudfront)