Creator · itsmostafa
Last updated · Sep 2, 2026
AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns.
Creator · itsmostafa
Last updated · Sep 2, 2026
AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns.
Creator · itsmostafa
Last updated · Sep 2, 2026
AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns.
Creator · itsmostafa
Last updated · Sep 2, 2026
AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns.
Sandbox only
Install targets
Codex install prompt
Install the "bedrock" agent skill from https://github.com/itsmostafa/aws-agent-skills/tree/main/skills/bedrock. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"itsmostafa-bedrock","task":"Install bedrock","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Maintenance
fresh
7d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
1.1K
77/100 Quality · 77/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
1.1K GitHub stars
Repo activity
1.1K stars, 444 forks
Maintenance
7d since push
License
MIT
Install
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add itsmostafa/aws-agent-skills --skill bedrockDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/itsmostafa-bedrock/install
Agent should check
Copy prompt
Task: Use bedrock in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/itsmostafa-bedrock/install
Install command: npx skills add itsmostafa/aws-agent-skills --skill bedrock
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/itsmostafa-bedrock/install
LLM text format
/api/skills/itsmostafa-bedrock/install?format=text
Find alternatives
/api/skills/search?q=bedrock&limit=3
Agent prompt
Use bedrock for this task. Review https://www.openagentskill.com/api/skills/itsmostafa-bedrock/install, then install with: npx skills add itsmostafa/aws-agent-skills --skill bedrockRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/itsmostafa-bedrock
LLM text
/api/registry/manifest/itsmostafa-bedrock?format=text
Install alias
/api/registry/install/itsmostafa-bedrock
Recommend
/api/registry/recommend?task=Use%20bedrock%20in%20an%20agent%20workflow&limit=3
Agent fit
Design and creative
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Design and creative
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS1.1K GitHub stars
Stars/forks activity
PASS1.1K stars, 444 forks; issue activity unavailable in current metadata
Recent maintenance
PASS7d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Create assets
I need my agent to produce design assets, UI directions, presentations, or creative media workflows.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Workflow fit
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: bedrock description: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns. last_updated: "2026-01-07" doc_source: https://docs.aws.amazon.com/bedrock/latest/userguide/ ---
# AWS Bedrock
Amazon Bedrock provides access to foundation models (FMs) from AI companies through a unified API. Build generative AI applications with text generation, embeddings, and image generation capabilities.
## Table of Contents
- [Core Concepts](#core-concepts) - [Common Patterns](#common-patterns) - [CLI Reference](#cli-reference) - [Best Practices](#best-practices) - [Troubleshooting](#troubleshooting) - [References](#references)
## Core Concepts
### Foundation Models
Pre-trained models available through Bedrock: - **Claude** (Anthropic): Text generation, analysis, coding - **Titan** (Amazon): Text, embeddings, image generation - **Llama** (Meta): Open-weight text generation - **Mistral**: Efficient text generation - **Stable Diffusion** (Stability AI): Image generation
### Model Access
Models must be enabled in your account before use: - Request access in Bedrock console - Some models require acceptance of EULAs - Access is region-specific
### Inference Types
| Type | Use Case | Pricing | |------|----------|---------| | **On-Demand** | Variable workloads | Per token | | **Provisioned Throughput** | Consistent high-volume | Hourly commitment | | **Batch Inference** | Async large-scale | Discounted per token |
## Common Patterns
### Invoke Model (Text Generation)
**AWS CLI:**
```bash # Invoke Claude aws bedrock-runtime invoke-model \ --model-id anthropic.claude-3-sonnet-20240229-v1:0 \ --content-type application/json \ --accept application/json \ --body '{ "anthropic_version": "bedrock-2023-05-31", "max_tokens": 1024, "messages": [ {"role": "user", "content": "Explain AWS Lambda in 3 sentences."} ] }' \ response.json
cat response.json | jq -r '.content[0].text' ```
**boto3:**
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def invoke_claude(prompt, max_tokens=1024): response = bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': max_tokens, 'messages': [ {'role': 'user', 'content': prompt} ] }) )
result = json.loads(response['body'].read()) return result['content'][0]['text']
# Usage response = invoke_claude('What is Amazon S3?') print(response) ```
### Streaming Response
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def stream_claude(prompt): response = bedrock.invoke_model_with_response_stream( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': 1024, 'messages': [ {'role': 'user', 'content': prompt} ] }) )
for event in response['body']: chunk = json.loads(event['chunk']['bytes']) if chunk['type'] == 'content_block_delta': yield chunk['delta'].get('text', '')
# Usage for text in stream_claude('Write a haiku about cloud computing.'): print(text, end='', flush=True) ```
### Generate Embeddings
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def get_embedding(text): response = bedrock.invoke_model( modelId='amazon.titan-embed-text-v2:0', contentType='application/json', accept='application/json', body=json.dumps({ 'inputText': text, 'dimensions': 1024, 'normalize': True }) )
result = json.loads(response['body'].read()) return result['embedding']
# Usage embedding = get_embedding('AWS Lambda is a serverless compute service.') print(f'Embedding dimension: {len(embedding)}') ```
### Conversation with History
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
class Conversation: def __init__(self, system_prompt=None): self.messages = [] self.system = system_prompt
def chat(self, user_message): self.messages.append({ 'role': 'user', 'content': user_message })
body = { 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': 1024, 'messages': self.messages }
if self.system: body['system'] = self.system
response = bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps(body) )
result = json.loads(response['body'].read()) assistant_message = result['content'][0]['text']
self.messages.append({ 'role': 'assistant', 'content': assistant_message })
return assistant_message
# Usage conv = Conversation(system_prompt='You are an AWS solutions architect.') print(conv.chat('What database should I use for a chat application?')) print(conv.chat('What about for time-series data?')) ```
### List Available Models
```bash # List all foundation models aws bedrock list-foundation-models \ --query 'modelSummaries[*].[modelId,modelName,providerName]' \ --output table
# Filter by provider aws bedrock list-foundation-models \ --by-provider anthropic \ --query 'modelSummaries[*].modelId'
# Get model details aws bedrock get-foundation-model \ --model-identifier anthropic.claude-3-sonnet-20240229-v1:0 ```
### Request Model Access
```bash # List model access status aws bedrock list-foundation-model-agreement-offers \ --model-id anthropic.claude-3-sonnet-20240229-v1:0 ```
## CLI Reference
### Bedrock (Control Plane)
| Command | Description | |---------|-------------| | `aws bedrock list-foundation-models` | List available models | | `aws bedrock get-foundation-model` | Get model details | | `aws bedrock list-custom-models` | List fine-tuned models | | `aws bedrock create-model-customization-job` | Start fine-tuning | | `aws bedrock list-provisioned-model-throughputs` | List provisioned capacity |
### Bedrock Runtime (Data Plane)
| Command | Description | |---------|-------------| | `aws bedrock-runtime invoke-model` | Invoke model synchronously | | `aws bedrock-runtime invoke-model-with-response-stream` | Invoke with streaming | | `aws bedrock-runtime converse` | Multi-turn conversation API | | `aws bedrock-runtime converse-stream` | Streaming conversation |
### Bedrock Agent Runtime
| Command | Description | |---------|-------------| | `aws bedrock-agent-runtime invoke-agent` | Invoke a Bedrock agent | | `aws bedrock-agent-runtime retrieve` | Query knowledge base | | `aws bedrock-agent-runtime retrieve-and-generate` | RAG query |
## Best Practices
### Cost Optimization
- **Use appropriate models**: Smaller models for simple tasks - **Set max_tokens**: Limit output length when possible - **Cache responses**: For repeated identical queries - **Batch when possible**: Use batch inference for bulk processing - **Monitor usage**: Set up CloudWatch alarms for cost
### Performance
- **Use streaming**: For better user experience with long outputs - **Connection pooling**: Reuse boto3 clients - **Regional deployment**: Use closest region to reduce latency - **Provisioned throughput**: For consistent high-volume workloads
### Security
- **Least privilege IAM**: Only grant needed model access - **VPC endpoints**: Keep traffic private - **Guardrails**: Implement content filtering - **Audit with CloudTrail**: Track model invocations
### IAM Permissions
```json { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": [ "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0", "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" ] } ] } ```
## Troubleshooting
### AccessDeniedException
**Causes:** - Model access not enabled in console - IAM policy missing `bedrock:InvokeModel` - Wrong model ID or region
**Debug:**
```bash # Check model access status aws bedrock list-foundation-models \ --query 'modelSummaries[?modelId==`anthropic.claude-3-sonnet-20240229-v1:0`]'
# Test IAM permissions aws iam simulate-principal-policy \ --policy-source-arn arn:aws:iam::123456789012:role/my-role \ --action-names bedrock:InvokeModel \ --resource-arns "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0" ```
### ModelNotReadyException
**Cause:** Model is still being provisioned or temporarily unavailable.
**Solution:** Implement retry with exponential backoff:
```python import time from botocore.exceptions import ClientError
def invoke_with_retry(bedrock, body, max_retries=3): for attempt in range(max_retries): try: return bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', body=json.dumps(body) ) except ClientError as e: if e.response['Error']['Code'] == 'ModelNotReadyException': time.sleep(2 ** attempt) else: raise raise Exception('Max retries exceeded') ```
### ThrottlingException
**Causes:** - Exceeded on-demand quota - Too many concurrent requests
**Solutions:** - Request quota increase - Implement exponential backoff - Consider provisioned throughput
### ValidationException
**Common issues:** - Invalid model ID - Malformed request body - max_tokens exceeds model limit
**Debug:**
```python # Check model-specific requirements aws bedrock get-foundation-model \ --model-identifier anthropic.claude-3-sonnet-20240229-v1:0 \ --query 'modelDetails.inferenceTypesSupported' ```
## References
- [Bedrock User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/) - [Bedrock API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/) - [Bedrock Runtime API](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Amazon_Bedrock_Runtime.html) - [Model Parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) - [Bedrock Pricing](https://aws.amazon.com/bedrock/pricing/)
Source provenance
Decision snapshot
1,150 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bedrock, ready for a manual X post.
bedrock: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, buildin... 1.1K stars https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=x
Listing + install path for bedrock: https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=x Install: npx skills add itsmostafa/aws-agent-skills --skill bedrock
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to itsmostafa but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock/audit)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)itsmostafa
@itsmostafa
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsSandbox only
Install targets
Codex install prompt
Install the "bedrock" agent skill from https://github.com/itsmostafa/aws-agent-skills/tree/main/skills/bedrock. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"itsmostafa-bedrock","task":"Install bedrock","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Maintenance
fresh
7d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
1.1K
77/100 Quality · 77/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
1.1K GitHub stars
Repo activity
1.1K stars, 444 forks
Maintenance
7d since push
License
MIT
Install
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add itsmostafa/aws-agent-skills --skill bedrockDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/itsmostafa-bedrock/install
Agent should check
Copy prompt
Task: Use bedrock in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/itsmostafa-bedrock/install
Install command: npx skills add itsmostafa/aws-agent-skills --skill bedrock
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/itsmostafa-bedrock/install
LLM text format
/api/skills/itsmostafa-bedrock/install?format=text
Find alternatives
/api/skills/search?q=bedrock&limit=3
Agent prompt
Use bedrock for this task. Review https://www.openagentskill.com/api/skills/itsmostafa-bedrock/install, then install with: npx skills add itsmostafa/aws-agent-skills --skill bedrockRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/itsmostafa-bedrock
LLM text
/api/registry/manifest/itsmostafa-bedrock?format=text
Install alias
/api/registry/install/itsmostafa-bedrock
Recommend
/api/registry/recommend?task=Use%20bedrock%20in%20an%20agent%20workflow&limit=3
Agent fit
Design and creative
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Design and creative
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS1.1K GitHub stars
Stars/forks activity
PASS1.1K stars, 444 forks; issue activity unavailable in current metadata
Recent maintenance
PASS7d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Create assets
I need my agent to produce design assets, UI directions, presentations, or creative media workflows.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Workflow fit
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: bedrock description: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns. last_updated: "2026-01-07" doc_source: https://docs.aws.amazon.com/bedrock/latest/userguide/ ---
# AWS Bedrock
Amazon Bedrock provides access to foundation models (FMs) from AI companies through a unified API. Build generative AI applications with text generation, embeddings, and image generation capabilities.
## Table of Contents
- [Core Concepts](#core-concepts) - [Common Patterns](#common-patterns) - [CLI Reference](#cli-reference) - [Best Practices](#best-practices) - [Troubleshooting](#troubleshooting) - [References](#references)
## Core Concepts
### Foundation Models
Pre-trained models available through Bedrock: - **Claude** (Anthropic): Text generation, analysis, coding - **Titan** (Amazon): Text, embeddings, image generation - **Llama** (Meta): Open-weight text generation - **Mistral**: Efficient text generation - **Stable Diffusion** (Stability AI): Image generation
### Model Access
Models must be enabled in your account before use: - Request access in Bedrock console - Some models require acceptance of EULAs - Access is region-specific
### Inference Types
| Type | Use Case | Pricing | |------|----------|---------| | **On-Demand** | Variable workloads | Per token | | **Provisioned Throughput** | Consistent high-volume | Hourly commitment | | **Batch Inference** | Async large-scale | Discounted per token |
## Common Patterns
### Invoke Model (Text Generation)
**AWS CLI:**
```bash # Invoke Claude aws bedrock-runtime invoke-model \ --model-id anthropic.claude-3-sonnet-20240229-v1:0 \ --content-type application/json \ --accept application/json \ --body '{ "anthropic_version": "bedrock-2023-05-31", "max_tokens": 1024, "messages": [ {"role": "user", "content": "Explain AWS Lambda in 3 sentences."} ] }' \ response.json
cat response.json | jq -r '.content[0].text' ```
**boto3:**
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def invoke_claude(prompt, max_tokens=1024): response = bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': max_tokens, 'messages': [ {'role': 'user', 'content': prompt} ] }) )
result = json.loads(response['body'].read()) return result['content'][0]['text']
# Usage response = invoke_claude('What is Amazon S3?') print(response) ```
### Streaming Response
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def stream_claude(prompt): response = bedrock.invoke_model_with_response_stream( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': 1024, 'messages': [ {'role': 'user', 'content': prompt} ] }) )
for event in response['body']: chunk = json.loads(event['chunk']['bytes']) if chunk['type'] == 'content_block_delta': yield chunk['delta'].get('text', '')
# Usage for text in stream_claude('Write a haiku about cloud computing.'): print(text, end='', flush=True) ```
### Generate Embeddings
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def get_embedding(text): response = bedrock.invoke_model( modelId='amazon.titan-embed-text-v2:0', contentType='application/json', accept='application/json', body=json.dumps({ 'inputText': text, 'dimensions': 1024, 'normalize': True }) )
result = json.loads(response['body'].read()) return result['embedding']
# Usage embedding = get_embedding('AWS Lambda is a serverless compute service.') print(f'Embedding dimension: {len(embedding)}') ```
### Conversation with History
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
class Conversation: def __init__(self, system_prompt=None): self.messages = [] self.system = system_prompt
def chat(self, user_message): self.messages.append({ 'role': 'user', 'content': user_message })
body = { 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': 1024, 'messages': self.messages }
if self.system: body['system'] = self.system
response = bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps(body) )
result = json.loads(response['body'].read()) assistant_message = result['content'][0]['text']
self.messages.append({ 'role': 'assistant', 'content': assistant_message })
return assistant_message
# Usage conv = Conversation(system_prompt='You are an AWS solutions architect.') print(conv.chat('What database should I use for a chat application?')) print(conv.chat('What about for time-series data?')) ```
### List Available Models
```bash # List all foundation models aws bedrock list-foundation-models \ --query 'modelSummaries[*].[modelId,modelName,providerName]' \ --output table
# Filter by provider aws bedrock list-foundation-models \ --by-provider anthropic \ --query 'modelSummaries[*].modelId'
# Get model details aws bedrock get-foundation-model \ --model-identifier anthropic.claude-3-sonnet-20240229-v1:0 ```
### Request Model Access
```bash # List model access status aws bedrock list-foundation-model-agreement-offers \ --model-id anthropic.claude-3-sonnet-20240229-v1:0 ```
## CLI Reference
### Bedrock (Control Plane)
| Command | Description | |---------|-------------| | `aws bedrock list-foundation-models` | List available models | | `aws bedrock get-foundation-model` | Get model details | | `aws bedrock list-custom-models` | List fine-tuned models | | `aws bedrock create-model-customization-job` | Start fine-tuning | | `aws bedrock list-provisioned-model-throughputs` | List provisioned capacity |
### Bedrock Runtime (Data Plane)
| Command | Description | |---------|-------------| | `aws bedrock-runtime invoke-model` | Invoke model synchronously | | `aws bedrock-runtime invoke-model-with-response-stream` | Invoke with streaming | | `aws bedrock-runtime converse` | Multi-turn conversation API | | `aws bedrock-runtime converse-stream` | Streaming conversation |
### Bedrock Agent Runtime
| Command | Description | |---------|-------------| | `aws bedrock-agent-runtime invoke-agent` | Invoke a Bedrock agent | | `aws bedrock-agent-runtime retrieve` | Query knowledge base | | `aws bedrock-agent-runtime retrieve-and-generate` | RAG query |
## Best Practices
### Cost Optimization
- **Use appropriate models**: Smaller models for simple tasks - **Set max_tokens**: Limit output length when possible - **Cache responses**: For repeated identical queries - **Batch when possible**: Use batch inference for bulk processing - **Monitor usage**: Set up CloudWatch alarms for cost
### Performance
- **Use streaming**: For better user experience with long outputs - **Connection pooling**: Reuse boto3 clients - **Regional deployment**: Use closest region to reduce latency - **Provisioned throughput**: For consistent high-volume workloads
### Security
- **Least privilege IAM**: Only grant needed model access - **VPC endpoints**: Keep traffic private - **Guardrails**: Implement content filtering - **Audit with CloudTrail**: Track model invocations
### IAM Permissions
```json { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": [ "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0", "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" ] } ] } ```
## Troubleshooting
### AccessDeniedException
**Causes:** - Model access not enabled in console - IAM policy missing `bedrock:InvokeModel` - Wrong model ID or region
**Debug:**
```bash # Check model access status aws bedrock list-foundation-models \ --query 'modelSummaries[?modelId==`anthropic.claude-3-sonnet-20240229-v1:0`]'
# Test IAM permissions aws iam simulate-principal-policy \ --policy-source-arn arn:aws:iam::123456789012:role/my-role \ --action-names bedrock:InvokeModel \ --resource-arns "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0" ```
### ModelNotReadyException
**Cause:** Model is still being provisioned or temporarily unavailable.
**Solution:** Implement retry with exponential backoff:
```python import time from botocore.exceptions import ClientError
def invoke_with_retry(bedrock, body, max_retries=3): for attempt in range(max_retries): try: return bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', body=json.dumps(body) ) except ClientError as e: if e.response['Error']['Code'] == 'ModelNotReadyException': time.sleep(2 ** attempt) else: raise raise Exception('Max retries exceeded') ```
### ThrottlingException
**Causes:** - Exceeded on-demand quota - Too many concurrent requests
**Solutions:** - Request quota increase - Implement exponential backoff - Consider provisioned throughput
### ValidationException
**Common issues:** - Invalid model ID - Malformed request body - max_tokens exceeds model limit
**Debug:**
```python # Check model-specific requirements aws bedrock get-foundation-model \ --model-identifier anthropic.claude-3-sonnet-20240229-v1:0 \ --query 'modelDetails.inferenceTypesSupported' ```
## References
- [Bedrock User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/) - [Bedrock API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/) - [Bedrock Runtime API](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Amazon_Bedrock_Runtime.html) - [Model Parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) - [Bedrock Pricing](https://aws.amazon.com/bedrock/pricing/)
Source provenance
Decision snapshot
1,150 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bedrock, ready for a manual X post.
bedrock: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, buildin... 1.1K stars https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=x
Listing + install path for bedrock: https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=x Install: npx skills add itsmostafa/aws-agent-skills --skill bedrock
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to itsmostafa but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock/audit)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)itsmostafa
@itsmostafa
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsSandbox only
Install targets
Codex install prompt
Install the "bedrock" agent skill from https://github.com/itsmostafa/aws-agent-skills/tree/main/skills/bedrock. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"itsmostafa-bedrock","task":"Install bedrock","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Maintenance
fresh
7d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
1.1K
77/100 Quality · 77/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
1.1K GitHub stars
Repo activity
1.1K stars, 444 forks
Maintenance
7d since push
License
MIT
Install
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add itsmostafa/aws-agent-skills --skill bedrockDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/itsmostafa-bedrock/install
Agent should check
Copy prompt
Task: Use bedrock in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/itsmostafa-bedrock/install
Install command: npx skills add itsmostafa/aws-agent-skills --skill bedrock
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/itsmostafa-bedrock/install
LLM text format
/api/skills/itsmostafa-bedrock/install?format=text
Find alternatives
/api/skills/search?q=bedrock&limit=3
Agent prompt
Use bedrock for this task. Review https://www.openagentskill.com/api/skills/itsmostafa-bedrock/install, then install with: npx skills add itsmostafa/aws-agent-skills --skill bedrockRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/itsmostafa-bedrock
LLM text
/api/registry/manifest/itsmostafa-bedrock?format=text
Install alias
/api/registry/install/itsmostafa-bedrock
Recommend
/api/registry/recommend?task=Use%20bedrock%20in%20an%20agent%20workflow&limit=3
Agent fit
Design and creative
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Design and creative
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS1.1K GitHub stars
Stars/forks activity
PASS1.1K stars, 444 forks; issue activity unavailable in current metadata
Recent maintenance
PASS7d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Create assets
I need my agent to produce design assets, UI directions, presentations, or creative media workflows.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Workflow fit
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: bedrock description: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns. last_updated: "2026-01-07" doc_source: https://docs.aws.amazon.com/bedrock/latest/userguide/ ---
# AWS Bedrock
Amazon Bedrock provides access to foundation models (FMs) from AI companies through a unified API. Build generative AI applications with text generation, embeddings, and image generation capabilities.
## Table of Contents
- [Core Concepts](#core-concepts) - [Common Patterns](#common-patterns) - [CLI Reference](#cli-reference) - [Best Practices](#best-practices) - [Troubleshooting](#troubleshooting) - [References](#references)
## Core Concepts
### Foundation Models
Pre-trained models available through Bedrock: - **Claude** (Anthropic): Text generation, analysis, coding - **Titan** (Amazon): Text, embeddings, image generation - **Llama** (Meta): Open-weight text generation - **Mistral**: Efficient text generation - **Stable Diffusion** (Stability AI): Image generation
### Model Access
Models must be enabled in your account before use: - Request access in Bedrock console - Some models require acceptance of EULAs - Access is region-specific
### Inference Types
| Type | Use Case | Pricing | |------|----------|---------| | **On-Demand** | Variable workloads | Per token | | **Provisioned Throughput** | Consistent high-volume | Hourly commitment | | **Batch Inference** | Async large-scale | Discounted per token |
## Common Patterns
### Invoke Model (Text Generation)
**AWS CLI:**
```bash # Invoke Claude aws bedrock-runtime invoke-model \ --model-id anthropic.claude-3-sonnet-20240229-v1:0 \ --content-type application/json \ --accept application/json \ --body '{ "anthropic_version": "bedrock-2023-05-31", "max_tokens": 1024, "messages": [ {"role": "user", "content": "Explain AWS Lambda in 3 sentences."} ] }' \ response.json
cat response.json | jq -r '.content[0].text' ```
**boto3:**
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def invoke_claude(prompt, max_tokens=1024): response = bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': max_tokens, 'messages': [ {'role': 'user', 'content': prompt} ] }) )
result = json.loads(response['body'].read()) return result['content'][0]['text']
# Usage response = invoke_claude('What is Amazon S3?') print(response) ```
### Streaming Response
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def stream_claude(prompt): response = bedrock.invoke_model_with_response_stream( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': 1024, 'messages': [ {'role': 'user', 'content': prompt} ] }) )
for event in response['body']: chunk = json.loads(event['chunk']['bytes']) if chunk['type'] == 'content_block_delta': yield chunk['delta'].get('text', '')
# Usage for text in stream_claude('Write a haiku about cloud computing.'): print(text, end='', flush=True) ```
### Generate Embeddings
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def get_embedding(text): response = bedrock.invoke_model( modelId='amazon.titan-embed-text-v2:0', contentType='application/json', accept='application/json', body=json.dumps({ 'inputText': text, 'dimensions': 1024, 'normalize': True }) )
result = json.loads(response['body'].read()) return result['embedding']
# Usage embedding = get_embedding('AWS Lambda is a serverless compute service.') print(f'Embedding dimension: {len(embedding)}') ```
### Conversation with History
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
class Conversation: def __init__(self, system_prompt=None): self.messages = [] self.system = system_prompt
def chat(self, user_message): self.messages.append({ 'role': 'user', 'content': user_message })
body = { 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': 1024, 'messages': self.messages }
if self.system: body['system'] = self.system
response = bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps(body) )
result = json.loads(response['body'].read()) assistant_message = result['content'][0]['text']
self.messages.append({ 'role': 'assistant', 'content': assistant_message })
return assistant_message
# Usage conv = Conversation(system_prompt='You are an AWS solutions architect.') print(conv.chat('What database should I use for a chat application?')) print(conv.chat('What about for time-series data?')) ```
### List Available Models
```bash # List all foundation models aws bedrock list-foundation-models \ --query 'modelSummaries[*].[modelId,modelName,providerName]' \ --output table
# Filter by provider aws bedrock list-foundation-models \ --by-provider anthropic \ --query 'modelSummaries[*].modelId'
# Get model details aws bedrock get-foundation-model \ --model-identifier anthropic.claude-3-sonnet-20240229-v1:0 ```
### Request Model Access
```bash # List model access status aws bedrock list-foundation-model-agreement-offers \ --model-id anthropic.claude-3-sonnet-20240229-v1:0 ```
## CLI Reference
### Bedrock (Control Plane)
| Command | Description | |---------|-------------| | `aws bedrock list-foundation-models` | List available models | | `aws bedrock get-foundation-model` | Get model details | | `aws bedrock list-custom-models` | List fine-tuned models | | `aws bedrock create-model-customization-job` | Start fine-tuning | | `aws bedrock list-provisioned-model-throughputs` | List provisioned capacity |
### Bedrock Runtime (Data Plane)
| Command | Description | |---------|-------------| | `aws bedrock-runtime invoke-model` | Invoke model synchronously | | `aws bedrock-runtime invoke-model-with-response-stream` | Invoke with streaming | | `aws bedrock-runtime converse` | Multi-turn conversation API | | `aws bedrock-runtime converse-stream` | Streaming conversation |
### Bedrock Agent Runtime
| Command | Description | |---------|-------------| | `aws bedrock-agent-runtime invoke-agent` | Invoke a Bedrock agent | | `aws bedrock-agent-runtime retrieve` | Query knowledge base | | `aws bedrock-agent-runtime retrieve-and-generate` | RAG query |
## Best Practices
### Cost Optimization
- **Use appropriate models**: Smaller models for simple tasks - **Set max_tokens**: Limit output length when possible - **Cache responses**: For repeated identical queries - **Batch when possible**: Use batch inference for bulk processing - **Monitor usage**: Set up CloudWatch alarms for cost
### Performance
- **Use streaming**: For better user experience with long outputs - **Connection pooling**: Reuse boto3 clients - **Regional deployment**: Use closest region to reduce latency - **Provisioned throughput**: For consistent high-volume workloads
### Security
- **Least privilege IAM**: Only grant needed model access - **VPC endpoints**: Keep traffic private - **Guardrails**: Implement content filtering - **Audit with CloudTrail**: Track model invocations
### IAM Permissions
```json { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": [ "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0", "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" ] } ] } ```
## Troubleshooting
### AccessDeniedException
**Causes:** - Model access not enabled in console - IAM policy missing `bedrock:InvokeModel` - Wrong model ID or region
**Debug:**
```bash # Check model access status aws bedrock list-foundation-models \ --query 'modelSummaries[?modelId==`anthropic.claude-3-sonnet-20240229-v1:0`]'
# Test IAM permissions aws iam simulate-principal-policy \ --policy-source-arn arn:aws:iam::123456789012:role/my-role \ --action-names bedrock:InvokeModel \ --resource-arns "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0" ```
### ModelNotReadyException
**Cause:** Model is still being provisioned or temporarily unavailable.
**Solution:** Implement retry with exponential backoff:
```python import time from botocore.exceptions import ClientError
def invoke_with_retry(bedrock, body, max_retries=3): for attempt in range(max_retries): try: return bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', body=json.dumps(body) ) except ClientError as e: if e.response['Error']['Code'] == 'ModelNotReadyException': time.sleep(2 ** attempt) else: raise raise Exception('Max retries exceeded') ```
### ThrottlingException
**Causes:** - Exceeded on-demand quota - Too many concurrent requests
**Solutions:** - Request quota increase - Implement exponential backoff - Consider provisioned throughput
### ValidationException
**Common issues:** - Invalid model ID - Malformed request body - max_tokens exceeds model limit
**Debug:**
```python # Check model-specific requirements aws bedrock get-foundation-model \ --model-identifier anthropic.claude-3-sonnet-20240229-v1:0 \ --query 'modelDetails.inferenceTypesSupported' ```
## References
- [Bedrock User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/) - [Bedrock API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/) - [Bedrock Runtime API](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Amazon_Bedrock_Runtime.html) - [Model Parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) - [Bedrock Pricing](https://aws.amazon.com/bedrock/pricing/)
Source provenance
Decision snapshot
1,150 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bedrock, ready for a manual X post.
bedrock: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, buildin... 1.1K stars https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=x
Listing + install path for bedrock: https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=x Install: npx skills add itsmostafa/aws-agent-skills --skill bedrock
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to itsmostafa but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock/audit)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)itsmostafa
@itsmostafa
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsSandbox only
Install targets
Codex install prompt
Install the "bedrock" agent skill from https://github.com/itsmostafa/aws-agent-skills/tree/main/skills/bedrock. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"itsmostafa-bedrock","task":"Install bedrock","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Maintenance
fresh
7d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
1.1K
77/100 Quality · 77/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
1.1K GitHub stars
Repo activity
1.1K stars, 444 forks
Maintenance
7d since push
License
MIT
Install
npx skills add itsmostafa/aws-agent-skills --skill bedrock
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add itsmostafa/aws-agent-skills --skill bedrockDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/itsmostafa-bedrock/install
Agent should check
Copy prompt
Task: Use bedrock in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20bedrock%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/itsmostafa-bedrock/install
Install command: npx skills add itsmostafa/aws-agent-skills --skill bedrock
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/itsmostafa-bedrock/install
LLM text format
/api/skills/itsmostafa-bedrock/install?format=text
Find alternatives
/api/skills/search?q=bedrock&limit=3
Agent prompt
Use bedrock for this task. Review https://www.openagentskill.com/api/skills/itsmostafa-bedrock/install, then install with: npx skills add itsmostafa/aws-agent-skills --skill bedrockRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/itsmostafa-bedrock
LLM text
/api/registry/manifest/itsmostafa-bedrock?format=text
Install alias
/api/registry/install/itsmostafa-bedrock
Recommend
/api/registry/recommend?task=Use%20bedrock%20in%20an%20agent%20workflow&limit=3
Agent fit
Design and creative
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Design and creative
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS1.1K GitHub stars
Stars/forks activity
PASS1.1K stars, 444 forks; issue activity unavailable in current metadata
Recent maintenance
PASS7d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Create assets
I need my agent to produce design assets, UI directions, presentations, or creative media workflows.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Search private knowledge
I need my agent to build a RAG workflow over documents and retrieve reliable context.
Workflow fit
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: bedrock description: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns. last_updated: "2026-01-07" doc_source: https://docs.aws.amazon.com/bedrock/latest/userguide/ ---
# AWS Bedrock
Amazon Bedrock provides access to foundation models (FMs) from AI companies through a unified API. Build generative AI applications with text generation, embeddings, and image generation capabilities.
## Table of Contents
- [Core Concepts](#core-concepts) - [Common Patterns](#common-patterns) - [CLI Reference](#cli-reference) - [Best Practices](#best-practices) - [Troubleshooting](#troubleshooting) - [References](#references)
## Core Concepts
### Foundation Models
Pre-trained models available through Bedrock: - **Claude** (Anthropic): Text generation, analysis, coding - **Titan** (Amazon): Text, embeddings, image generation - **Llama** (Meta): Open-weight text generation - **Mistral**: Efficient text generation - **Stable Diffusion** (Stability AI): Image generation
### Model Access
Models must be enabled in your account before use: - Request access in Bedrock console - Some models require acceptance of EULAs - Access is region-specific
### Inference Types
| Type | Use Case | Pricing | |------|----------|---------| | **On-Demand** | Variable workloads | Per token | | **Provisioned Throughput** | Consistent high-volume | Hourly commitment | | **Batch Inference** | Async large-scale | Discounted per token |
## Common Patterns
### Invoke Model (Text Generation)
**AWS CLI:**
```bash # Invoke Claude aws bedrock-runtime invoke-model \ --model-id anthropic.claude-3-sonnet-20240229-v1:0 \ --content-type application/json \ --accept application/json \ --body '{ "anthropic_version": "bedrock-2023-05-31", "max_tokens": 1024, "messages": [ {"role": "user", "content": "Explain AWS Lambda in 3 sentences."} ] }' \ response.json
cat response.json | jq -r '.content[0].text' ```
**boto3:**
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def invoke_claude(prompt, max_tokens=1024): response = bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': max_tokens, 'messages': [ {'role': 'user', 'content': prompt} ] }) )
result = json.loads(response['body'].read()) return result['content'][0]['text']
# Usage response = invoke_claude('What is Amazon S3?') print(response) ```
### Streaming Response
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def stream_claude(prompt): response = bedrock.invoke_model_with_response_stream( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': 1024, 'messages': [ {'role': 'user', 'content': prompt} ] }) )
for event in response['body']: chunk = json.loads(event['chunk']['bytes']) if chunk['type'] == 'content_block_delta': yield chunk['delta'].get('text', '')
# Usage for text in stream_claude('Write a haiku about cloud computing.'): print(text, end='', flush=True) ```
### Generate Embeddings
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
def get_embedding(text): response = bedrock.invoke_model( modelId='amazon.titan-embed-text-v2:0', contentType='application/json', accept='application/json', body=json.dumps({ 'inputText': text, 'dimensions': 1024, 'normalize': True }) )
result = json.loads(response['body'].read()) return result['embedding']
# Usage embedding = get_embedding('AWS Lambda is a serverless compute service.') print(f'Embedding dimension: {len(embedding)}') ```
### Conversation with History
```python import boto3 import json
bedrock = boto3.client('bedrock-runtime')
class Conversation: def __init__(self, system_prompt=None): self.messages = [] self.system = system_prompt
def chat(self, user_message): self.messages.append({ 'role': 'user', 'content': user_message })
body = { 'anthropic_version': 'bedrock-2023-05-31', 'max_tokens': 1024, 'messages': self.messages }
if self.system: body['system'] = self.system
response = bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', contentType='application/json', accept='application/json', body=json.dumps(body) )
result = json.loads(response['body'].read()) assistant_message = result['content'][0]['text']
self.messages.append({ 'role': 'assistant', 'content': assistant_message })
return assistant_message
# Usage conv = Conversation(system_prompt='You are an AWS solutions architect.') print(conv.chat('What database should I use for a chat application?')) print(conv.chat('What about for time-series data?')) ```
### List Available Models
```bash # List all foundation models aws bedrock list-foundation-models \ --query 'modelSummaries[*].[modelId,modelName,providerName]' \ --output table
# Filter by provider aws bedrock list-foundation-models \ --by-provider anthropic \ --query 'modelSummaries[*].modelId'
# Get model details aws bedrock get-foundation-model \ --model-identifier anthropic.claude-3-sonnet-20240229-v1:0 ```
### Request Model Access
```bash # List model access status aws bedrock list-foundation-model-agreement-offers \ --model-id anthropic.claude-3-sonnet-20240229-v1:0 ```
## CLI Reference
### Bedrock (Control Plane)
| Command | Description | |---------|-------------| | `aws bedrock list-foundation-models` | List available models | | `aws bedrock get-foundation-model` | Get model details | | `aws bedrock list-custom-models` | List fine-tuned models | | `aws bedrock create-model-customization-job` | Start fine-tuning | | `aws bedrock list-provisioned-model-throughputs` | List provisioned capacity |
### Bedrock Runtime (Data Plane)
| Command | Description | |---------|-------------| | `aws bedrock-runtime invoke-model` | Invoke model synchronously | | `aws bedrock-runtime invoke-model-with-response-stream` | Invoke with streaming | | `aws bedrock-runtime converse` | Multi-turn conversation API | | `aws bedrock-runtime converse-stream` | Streaming conversation |
### Bedrock Agent Runtime
| Command | Description | |---------|-------------| | `aws bedrock-agent-runtime invoke-agent` | Invoke a Bedrock agent | | `aws bedrock-agent-runtime retrieve` | Query knowledge base | | `aws bedrock-agent-runtime retrieve-and-generate` | RAG query |
## Best Practices
### Cost Optimization
- **Use appropriate models**: Smaller models for simple tasks - **Set max_tokens**: Limit output length when possible - **Cache responses**: For repeated identical queries - **Batch when possible**: Use batch inference for bulk processing - **Monitor usage**: Set up CloudWatch alarms for cost
### Performance
- **Use streaming**: For better user experience with long outputs - **Connection pooling**: Reuse boto3 clients - **Regional deployment**: Use closest region to reduce latency - **Provisioned throughput**: For consistent high-volume workloads
### Security
- **Least privilege IAM**: Only grant needed model access - **VPC endpoints**: Keep traffic private - **Guardrails**: Implement content filtering - **Audit with CloudTrail**: Track model invocations
### IAM Permissions
```json { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": [ "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0", "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0" ] } ] } ```
## Troubleshooting
### AccessDeniedException
**Causes:** - Model access not enabled in console - IAM policy missing `bedrock:InvokeModel` - Wrong model ID or region
**Debug:**
```bash # Check model access status aws bedrock list-foundation-models \ --query 'modelSummaries[?modelId==`anthropic.claude-3-sonnet-20240229-v1:0`]'
# Test IAM permissions aws iam simulate-principal-policy \ --policy-source-arn arn:aws:iam::123456789012:role/my-role \ --action-names bedrock:InvokeModel \ --resource-arns "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0" ```
### ModelNotReadyException
**Cause:** Model is still being provisioned or temporarily unavailable.
**Solution:** Implement retry with exponential backoff:
```python import time from botocore.exceptions import ClientError
def invoke_with_retry(bedrock, body, max_retries=3): for attempt in range(max_retries): try: return bedrock.invoke_model( modelId='anthropic.claude-3-sonnet-20240229-v1:0', body=json.dumps(body) ) except ClientError as e: if e.response['Error']['Code'] == 'ModelNotReadyException': time.sleep(2 ** attempt) else: raise raise Exception('Max retries exceeded') ```
### ThrottlingException
**Causes:** - Exceeded on-demand quota - Too many concurrent requests
**Solutions:** - Request quota increase - Implement exponential backoff - Consider provisioned throughput
### ValidationException
**Common issues:** - Invalid model ID - Malformed request body - max_tokens exceeds model limit
**Debug:**
```python # Check model-specific requirements aws bedrock get-foundation-model \ --model-identifier anthropic.claude-3-sonnet-20240229-v1:0 \ --query 'modelDetails.inferenceTypesSupported' ```
## References
- [Bedrock User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/) - [Bedrock API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/) - [Bedrock Runtime API](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_Operations_Amazon_Bedrock_Runtime.html) - [Model Parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html) - [Bedrock Pricing](https://aws.amazon.com/bedrock/pricing/)
Source provenance
Decision snapshot
1,150 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for bedrock, ready for a manual X post.
bedrock: AWS Bedrock foundation models for generative AI. Use when invoking foundation models, buildin... 1.1K stars https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=x
Listing + install path for bedrock: https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=x Install: npx skills add itsmostafa/aws-agent-skills --skill bedrock
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to itsmostafa but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock/audit)
[](https://www.openagentskill.com/skills/itsmostafa-bedrock?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)itsmostafa
@itsmostafa
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsPermission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness