Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

aws-bedrock

БесплатноБез исполняемых скриптовНе проверен

AWS Bedrock — fully managed foundation models on AWS infrastructure. Use when deploying AI in AWS-native environments, needing enterprise compliance (SOC2…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub14 установок в других каталогах

Об этом скилле

AWS Bedrock

Overview

Amazon Bedrock is a fully managed service that provides access to foundation models from multiple providers (Anthropic, Amazon, Meta, Mistral and others) through a unified AWS API. It integrates natively with AWS IAM, VPC, CloudWatch, and S3, making it ideal for enterprise workloads requiring compliance, security controls, and AWS-native data pipelines.

Setup

pip install boto3
# Configure credentials (SSO or an IAM role is preferable to long-lived keys)
aws configure sso
export AWS_DEFAULT_REGION=us-east-1

Access to most serverless models is on by default once your IAM role has the AWS Marketplace permissions (aws-marketplace:Subscribe, Unsubscribe, ViewSubscriptions) and the account has a valid payment method. Anthropic models on the bedrock-runtime endpoint also need the one-time first-use form (it does not apply to the bedrock-mantle endpoint). The first call can fail with AccessDeniedException for up to about 15 minutes while the subscription finishes. Some models need extra account-level access from AWS Sales.

Available Models

Model IDs, Regions and lifecycle state change often. List what your account and Region can call, and read the modelLifecycle field before you pin an ID:

import boto3

bedrock = boto3.client("bedrock", region_name="us-east-1")  # control plane, not bedrock-runtime
for m in bedrock.list_foundation_models(byProvider="anthropic")["modelSummaries"]:
    print(m["modelId"], m["modelLifecycle"]["status"])
Model ID Notes
anthropic.claude-fable-5-1, anthropic.claude-opus-5-5, anthropic.claude-sonnet-5-5, anthropic.claude-haiku-5-5 Current Claude line. No ARN version suffix. Call through InvokeModel or the Messages endpoint below.
anthropic.claude-haiku-4-5-20251001-v1:0 Older Claude. Needs an inference profile (global., us., eu. prefix); the bare ID fails with an HTTP 400 about on-demand throughput.
meta.llama3-3-70b-instruct-v1:0 Llama; already Legacy (EOL March 30, 2027).

Claude 3, 3.5 and 3.7 models, Claude Sonnet 4.5 and Opus 4.1 are Legacy with end-of-life dates between November 2026 and April 2027; Cohere Command R+ and Llama 3.1 405B are already past EOL. A Legacy model stops accepting new customers, and existing ones can lose access after 15 days of inactivity. Check the Bedrock model lifecycle page before using any ID from an older tutorial.

Instructions

Converse API (Recommended)

The Converse API is the unified chat interface for all Bedrock models:

import boto3

bedrock = boto3.client("bedrock-runtime", region_name="us-east-1")

response = bedrock.converse(
    modelId="global.anthropic.claude-haiku-4-5-20251001-v1:0",
    messages=[{"role": "user", "content": [{"text": "Explain AWS Lambda in simple terms."}]}],
    system=[{"text": "You are an AWS solutions architect for a fintech team."}],
    inferenceConfig={"maxTokens": 1024, "temperature": 0.7},
)

print(response["output"]["message"]["content"][0]["text"])
print(response["usage"])  # token counts

Streaming with Converse

import boto3

bedrock = boto3.client("bedrock-runtime", region_name="us-east-1")

response = bedrock.converse_stream(
    modelId="global.anthropic.claude-haiku-4-5-20251001-v1:0",
    messages=[{"role": "user", "content": [{"text": "Write a Python quicksort implementation."}]}],
)

for event in response["stream"]:
    if "contentBlockDelta" in event:
        delta = event["contentBlockDelta"]["delta"]
        if "text" in delta:
            print(delta["text"], end="", flush=True)
print()

Claude Sonnet/Opus 5.x through InvokeModel or the Messages endpoint

The current Claude models are documented for InvokeModel on bedrock-runtime and for a native Messages API on the bedrock-mantle endpoint. Use anthropic.claude-sonnet-5-5 as the model ID. Do not assume the Converse examples here accept them; check the model's page in Bedrock first.

pip install -U "anthropic[bedrock]"
from anthropic import AnthropicBedrockMantle

client = AnthropicBedrockMantle(aws_region="us-east-1")  # SigV4 via the standard AWS credential chain
message = client.messages.create(
    model="anthropic.claude-sonnet-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Summarize the CAP theorem in three sentences."}],
)
print(next(b.text for b in message.content if b.type == "text"))

That endpoint has no Files API, server-side tools (web search, code execution), MCP connector or Message Batches.

InvokeModel API (Raw)

Direct access with the model-specific body. Claude's body uses anthropic_version:

import boto3
import json

bedrock = boto3.client("bedrock-runtime", region_name="us-east-1")

body = {
    "anthropic_version": "bedrock-2023-05-31",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "What is the capital of France?"}],
}

response = bedrock.invoke_model(
Полный SKILL.md на GitHub

Установить aws-bedrock в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл aws-bedrock?

AWS Bedrock — fully managed foundation models on AWS infrastructure. Use when deploying AI in AWS-native environments, needing enterprise compliance (SOC2, HIPAA), running Claude or Llama on AWS, leveraging Knowledge Bases for RAG, or applying Guardrails for content safety.

Как установить скилл aws-bedrock?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aws-bedrock запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aws-bedrock с