AI & Agent Frameworks
LangChain and LangGraph on AWS
AgentCore is bring-your-own-framework, so LangGraph runs on it unchanged. The question worth asking is not whether you can, but whether the orchestration you have actually needs a graph.
AI & assistant-friendly summary
This section provides structured content for AI assistants and search engines. You can cite or summarize it when referencing this page.
Summary
Run LangChain and LangGraph on Amazon Bedrock and AgentCore — where the framework earns its keep, where a plain control loop wins, and how to keep agent code debuggable at 3am.
Key Facts
- •Run LangChain and LangGraph on Amazon Bedrock and AgentCore — where the framework earns its keep, where a plain control loop wins, and how to keep agent code debuggable at 3am
- •Do we need LangChain if we are on Bedrock
- •Both run on AgentCore, so this is not an infrastructure decision
- •Strands is AWS-native and tends to produce less abstraction between you and the model
- •Routing tools through Gateway makes the catalog an enforced boundary with authentication, rate limits and Cedar policy evaluated outside the model, which is what holds up under prompt injection
Entity Definitions
- Amazon Bedrock
- Amazon Bedrock is relevant to langchain and langgraph on aws.
- Bedrock
- Bedrock is relevant to langchain and langgraph on aws.
- CloudWatch
- CloudWatch is relevant to langchain and langgraph on aws.
AgentCore does not care which framework you use
Amazon Bedrock AgentCore is bring-your-own-framework. LangGraph, Strands, CrewAI, or three sequential prompts with an explicit control loop all run on the same substrate — session-isolated runtime, gateway for tools, memory with access control, identity propagation, observability and evaluations.
That removes the infrastructure question from the framework decision entirely, which is useful, because it leaves the question that actually matters.
The question that matters: does your workflow need a graph?
LangGraph models an agent as a state graph with nodes and edges. That is genuinely valuable when the workflow is cyclic and stateful — the agent loops, revisits earlier steps, and branches on accumulated context.
A large share of production agents are not that. They are: retrieve, decide, act, check. Three model calls and a control loop, written explicitly, that any engineer can read top to bottom.
The commonly cited practitioner argument here is worth taking seriously — that it is often easier to write the thing as sequential prompts with an explicit control loop, because it is easier to debug, monitor and control the output flow. We agree often enough that our default is the least abstraction that solves the problem.
The selection criterion we actually use: can the on-call engineer, who did not build this, read the control flow at 3am and work out which tool it called and why? If the framework helps with that, take it. If it obscures it, the framework is a cost.
Where the tool boundary belongs
This is the most consequential design point on the page, and the one most often got wrong.
Frameworks let you define tools as decorators. That is convenient and it produces a convention — it constrains the well-behaved case and nothing else. Under adversarial input, a prompt-injected instruction can persuade a model to attempt an action a decorator does not stop.
Route tools through AgentCore Gateway instead. The catalog becomes an enforced boundary: authentication, customer-configurable rate limits, and Cedar authorization evaluating every write outside the model. A model can be argued out of a system prompt. It cannot be argued out of an authorization policy.
The secondary benefit: the boundary survives a framework upgrade. Decorators do not.
Two things no framework gives you
Evals. A golden dataset with a pass bar enforced in the deployment pipeline. An agent without one is a system whose quality you are asserting rather than measuring. See agent evals.
Cost ceilings. Per-conversation token budgets and model routing by task, with CloudWatch alarms firing before the threshold rather than after the invoice. Framework abstraction tends to make token consumption less visible, not more, which is a reason to instrument it deliberately.
Our recommendation
Start without a framework. Add LangGraph when you hit a workflow that is genuinely graph-shaped and you can name why — not when the tutorial suggests it.
The trade-off we are accepting: this is slower if your team already has real LangGraph depth, and existing expertise is a legitimate reason to override the default. What we will not trade away is the tool boundary — that belongs in Gateway regardless of what runs above it.
Related reading
AI agent · Tool catalog · Amazon Bedrock AgentCore · Agentic commerce on AWS pattern
Tools & Calculators
Self-serve calculators and assessments that pair with this integration.
Amazon Bedrock AgentCore
The managed substrate underneath whichever framework you choose — runtime, gateway, memory, evals.
Generative AI on AWS
Production LLM applications with evals, guardrails and cost ceilings from sprint one.
eCommerce AI Agents on AWS
Commerce agents where the framework choice is made against the actual workflow.
Related AWS Services
Consulting engagements that frequently pair with this integration.
Amazon Bedrock AgentCore Consulting
Production agent infrastructure on Amazon Bedrock AgentCore — Runtime, Gateway, Memory, Identity, Observability and Evaluations. Bring your own framework; we operate the substrate.
Generative AI on AWS — Production-Ready LLM Apps in Weeks
Generative AI strategy and delivery on AWS — use-case selection, Bedrock + SageMaker architecture, governance, evaluations, and production rollout across the AWS AI stack.
eCommerce AI Agents on AWS
Production AI agents for eCommerce on Amazon Bedrock AgentCore — support and WISMO, inventory, merchandising, margin, returns and B2B. Tool boundaries, evals before launch, and a human on anything that moves money.
Amazon Bedrock Consulting for Production LLM Applications
Amazon Bedrock implementation consulting — Knowledge Bases, Agents, Guardrails, model routing, and production RAG. Hands-on Bedrock engineering, not GenAI strategy.
Who typically runs this integration?
The roles that most often own or review this stack.
AWS Solutions for CTOs
Cloud strategy, multi-account governance, agentic AI platform decisions, and FinOps culture for technology leaders scaling AWS in 2026 and beyond.
AWS Solutions for DevOps & Platform Engineers
EKS Auto Mode, OIDC-native CI/CD, supply-chain security, CDK Toolkit v2, and eBPF observability for platform teams building the platform on AWS in 2026.
Related Integrations
Other AWS integration guides commonly deployed alongside this one.
Shopify Integration with AWS
Connect Shopify to AWS for AI agents and analytics — EventBridge webhook delivery, Admin GraphQL API, idempotent order processing, and the join keys agents need to be useful rather than dangerous.
Datadog with AWS
Datadog on AWS in 2026: unified observability for CloudWatch, EKS, Lambda, Bedrock LLM workloads, and security posture across multi-cloud estates.
Frequently Asked Questions
Do we need LangChain if we are on Bedrock?
LangGraph or Strands on AgentCore?
What could go wrong with a framework-heavy agent stack?
Should tools be defined in the framework or in AgentCore Gateway?
When should we not use a framework at all?
Related Reading
Blog posts that expand on patterns in this integration guide.
Building AI Applications and Agents with LangChain on AWS
LangChain composes Bedrock models, tools, and retrieval; AgentCore hosts production agents. Reuse the B2B CRM Gateway canary (~180→95 ms) and 50K-session ~$791/mo silhouette — do not give the model the warehouse.
Building Production AI Agents with LangGraph and AWS Bedrock AgentCore
LangGraph belongs on AgentCore Runtime, not Harness. Reuse the B2B CRM Gateway canary (~180→95 ms) and the 50K-session ~$791/mo platform silhouette — then make graph state explicit.
AgentCore Harness + Strands 1.0: What Actually Ships in August 2026
Harness GA Jun 17, 2026 plus Strands 1.0 primitives — and why AWS Context is still Coming soon. Reuse the ~180→95 ms Gateway canary; ship Managed KB today.
Amazon Bedrock AgentCore: The Production Guide for Net-New AI Agents on AWS
Harness GA June 17, Agents Classic cutoff July 30, Payments GA August 18, Memory FGAC August 28. Harness vs Runtime, Gateway Policy, and when transacting agents still should not own checkout.
Need Help with This Integration?
Our AWS-certified engineers can design, implement, and operate this integration end-to-end — or review what you already have.
