View a markdown version of this page

開始方法 - Amazon ElastiCache

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

開始方法

次のコマンドを使用して ElastiCache スキルをインストールします。

npx skills add aws/agent-toolkit-for-aws/skills/specialized-skills/database-skills/amazon-elasticache -g -a <agent-id> --full-depth

install コマンド<agent-id>の をコーディングエージェントの識別子に置き換えます。次の表に、サポートされているコーディングエージェントの識別子を示します。インストーラは、 AWS エージェントツールキットリポジトリからコーディングエージェントが使用するグローバルスキルディレクトリに ElastiCache スキルを追加し、すべてのプロジェクトで使用できるようにします。

[エージェント] <agent-id> グローバルスキルパス プロジェクトスキルパス
Claude Code claude-code ~/.claude/skills/ .claude/skills/
カーソル cursor ~/.cursor/skills/ .agents/skills/
GitHub コパイロット github-copilot ~/.copilot/skills/ .agents/skills/
Codex codex ~/.codex/skills/ .agents/skills/
Gemini CLI gemini-cli ~/.gemini/skills/ .agents/skills/
Kiro CLI kiro-cli ~/.kiro/skills/ .kiro/skills/
Cline cline ~/.agents/skills/ .agents/skills/
Goose goose ~/.config/goose/skills/ .goose/skills/
Windsurf windsurf ~/.codeium/windsurf/skills/ .windsurf/skills/

代わりに 1 つのプロジェクトにスキルをローカルにインストールするには、 -gフラグを省略します。スキルは、前の表にリストされているプロジェクトスキルパスにインストールされます。

注記

スキルはエージェントでローカルに実行されます。 AWS リソースを作成または変更するタスクの場合、エージェントには AWS Command Line Interface、、環境変数、または IDE の AWS プラグインを介して設定された AWS 認証情報が必要です。

使用例

インストール後、エージェントに ElastiCache スキルを使用してビルドするように促すことができます。

次の例では、プレフィックスとしてAmazon ElastiCache スキルを使用して...」を使用します。

  • ワークロードを評価する: Use the Amazon ElastiCache skill to decide whether ElastiCache is right for my FastAPI app. The app reads heavily from Aurora PostgreSQL and has latency spikes during peak traffic.

  • 安全なキャッシュを作成しますUse the Amazon ElastiCache skill to create a Valkey cache in us-east-1 for my ECS service. Use TLS and recommend the right authentication model.

  • アプリケーションを接続しますUse the Amazon ElastiCache skill to connect my Lambda function to an existing Valkey cache. Show the VPC, security group, and client code changes.

  • レートリミッターを構築します。 Use the Amazon ElastiCache skill to build an API rate limiter with Valkey. I need per-user limits and atomic updates.

  • GenAI のセマンティックキャッシュを追加しますUse the Amazon ElastiCache skill to add semantic caching for Amazon Bedrock responses. Include embedding storage, similarity lookup, thresholding, and fallback behavior.

  • パフォーマンスのトラブルシューティング: Use the Amazon ElastiCache skill to pinpoint the cause of high CPU utilization on my cache cluster.

注記

一部のエージェントは、プロンプトがキャッシュ、セッション、レート制限などの関連するワークロードを記述するときに ElastiCache スキルを自動的にロードします。エージェントがスキルを自動的にロードしない場合は、プロンプトにElastiCache スキルを使用する」を含めます。