aws-cloudfront-cdn
Distribute content globally using CloudFront with caching, security headers, WAF integration, and origin configuration. Use for low-latency content delivery.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o aws-cloudfront-cdn.zip https://jpskill.com/download/21340.zip && unzip -o aws-cloudfront-cdn.zip && rm aws-cloudfront-cdn.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21340.zip -OutFile "$d\aws-cloudfront-cdn.zip"; Expand-Archive "$d\aws-cloudfront-cdn.zip" -DestinationPath $d -Force; ri "$d\aws-cloudfront-cdn.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
aws-cloudfront-cdn.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
aws-cloudfront-cdnフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 5
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
AWS CloudFront CDN
目次
概要
Amazon CloudFront は、高速でグローバルに分散されたコンテンツデリバリーネットワーク (CDN) です。世界中のエッジロケーションでコンテンツをキャッシュすることで、レイテンシーを削減し、パフォーマンスを向上させ、DDoS 保護による高可用性を提供します。
使用する状況
- 静的ウェブサイトのホスティングとアセット
- API アクセラレーションと動的コンテンツ
- ビデオおよびメディアストリーミング
- モバイルアプリケーションのコンテンツ
- 大容量ファイルのダウンロード
- リアルタイムデータ配信
- オリジンに対する DDoS 保護
- オリジンの分離とセキュリティ
クイックスタート
最小限の動作例:
# Create distribution for S3 origin
aws cloudfront create-distribution \
--distribution-config '{
"CallerReference": "myapp-'$(date +%s)'",
"Enabled": true,
"Comment": "My application distribution",
"Origins": {
"Quantity": 1,
"Items": [{
"Id": "myS3Origin",
"DomainName": "mybucket.s3.us-east-1.amazonaws.com",
"S3OriginConfig": {
"OriginAccessIdentity": "origin-access-identity/cloudfront/ABCDEFG1234567"
}
}]
},
"DefaultCacheBehavior": {
"AllowedMethods": {
"Quantity": 3,
"Items": ["GET", "HEAD", "OPTIONS"]
},
"ViewerProtocolPolicy": "redirect-to-https",
"TargetOriginId": "myS3Origin",
"ForwardedValues": {
"QueryString": false,
// ... (see reference guides for full implementation)
リファレンスガイド
references/ ディレクトリ内の詳細な実装:
| ガイド | 内容 |
|---|---|
| CloudFront Distribution with AWS CLI | AWS CLI を使用した CloudFront ディストリビューション |
| Terraform CloudFront Configuration | Terraform CloudFront 設定 |
| Custom Headers and Security Configuration | カスタムヘッダーとセキュリティ設定 |
ベストプラクティス
✅ 実施すべきこと
- S3 に Origin Access Identity (OAI) を使用する
- ビューワーには HTTPS のみ有効にする
- CloudFront でコンテンツを圧縮する
- 適切なキャッシュ TTL を設定する
- キャッシュ無効化は慎重に使用する
- 保護のために WAF を有効にする
- CloudWatch メトリクスを監視する
- 冗長性のために複数のオリジンを使用する
❌ 実施すべきでないこと
- S3 バケットを公開にする
- 機密データをキャッシュする
- 本番環境で HTTP を使用する
- キャッシュヘッダーを無視する
- 過剰な無効化を作成する
- WAF 保護をスキップする
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
AWS CloudFront CDN
Table of Contents
Overview
Amazon CloudFront is a fast, globally distributed content delivery network (CDN). Cache content at edge locations worldwide to reduce latency, improve performance, and provide high availability with DDoS protection.
When to Use
- Static website hosting and assets
- API acceleration and dynamic content
- Video and media streaming
- Mobile application content
- Large file downloads
- Real-time data distribution
- DDoS protection for origins
- Origin isolation and security
Quick Start
Minimal working example:
# Create distribution for S3 origin
aws cloudfront create-distribution \
--distribution-config '{
"CallerReference": "myapp-'$(date +%s)'",
"Enabled": true,
"Comment": "My application distribution",
"Origins": {
"Quantity": 1,
"Items": [{
"Id": "myS3Origin",
"DomainName": "mybucket.s3.us-east-1.amazonaws.com",
"S3OriginConfig": {
"OriginAccessIdentity": "origin-access-identity/cloudfront/ABCDEFG1234567"
}
}]
},
"DefaultCacheBehavior": {
"AllowedMethods": {
"Quantity": 3,
"Items": ["GET", "HEAD", "OPTIONS"]
},
"ViewerProtocolPolicy": "redirect-to-https",
"TargetOriginId": "myS3Origin",
"ForwardedValues": {
"QueryString": false,
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| CloudFront Distribution with AWS CLI | CloudFront Distribution with AWS CLI |
| Terraform CloudFront Configuration | Terraform CloudFront Configuration |
| Custom Headers and Security Configuration | Custom Headers and Security Configuration |
Best Practices
✅ DO
- Use Origin Access Identity (OAI) for S3
- Enable HTTPS only for viewers
- Compress content at CloudFront
- Set appropriate cache TTLs
- Use cache invalidation cautiously
- Enable WAF for protection
- Monitor CloudWatch metrics
- Use multiple origins for redundancy
❌ DON'T
- Make S3 buckets public
- Cache sensitive data
- Use HTTP for production
- Ignore cache headers
- Create excessive invalidations
- Skip WAF protection
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,784 bytes)
- 📎 references/cloudfront-distribution-with-aws-cli.md (2,012 bytes)
- 📎 references/custom-headers-and-security-configuration.md (829 bytes)
- 📎 references/terraform-cloudfront-configuration.md (6,102 bytes)
- 📎 scripts/validate-config.sh (427 bytes)