AWS AI Services

Use this page to map an AI architecture to AWS services. It is intentionally AWS-specific; model mechanics, retrieval theory, agents, and cloud-neutral production controls remain on their dedicated pages.

Agent architecture mapped to AWS

Start with the bounded agent tool sequence. The layers below map each responsibility in that vendor-neutral design to AWS implementation choices; they are not a mandatory five-service stack.

Layer Bounded-agent responsibility AWS implementation choices Boundary to remember
Interface Layer
  • Accept the user request.
  • Pass trusted identity to the Agent Controller.
  • Return or stream the response.
  • Amazon CloudFront and AWS WAF
  • Amazon API Gateway
  • Amazon Cognito
  • Lambda or ECS application endpoint
  • AgentCore Runtime endpoint where appropriate
  • Authenticate the caller.
  • Validate and throttle requests.
  • Convert identity into trusted claims—not prompt text.
Agent Layer
  • Run the Agent Controller.
  • Build context and choose bounded next steps.
  • Apply policy, budgets, and approval decisions.
  • AgentCore Runtime or Harness
  • AgentCore Identity and Policy
  • AWS Step Functions for deterministic workflow and approval
  • Lambda, ECS, or EKS for custom orchestration
  • Bedrock Agents Classic for existing workloads
  • Enforce step, time, token, and cost limits.
  • Treat model output as a proposal.
  • Let policy and workflow make the final execution decision.
Memory Layer
  • Store conversation and working context.
  • Persist task progress, tool results, and idempotency state.
  • Retrieve useful long-term memories.
  • AgentCore Memory for short- and long-term conversational memory
  • Amazon DynamoDB for task and idempotency state
  • Amazon Aurora or RDS for transactional state
  • Amazon S3 for durable artifacts
  • Scope memory by actor, session, and tenant.
  • Do not treat inferred memories as verified facts.
  • Keep authoritative business state in an explicit system of record.
Tooling Layer
  • Execute approved tool calls.
  • Retrieve external knowledge.
  • Return bounded observations to the Agent Controller.
  • AgentCore Gateway for MCP, API, and Lambda tools
  • Lambda and API Gateway adapters
  • Step Functions for durable actions
  • Bedrock Knowledge Bases, OpenSearch, or Kendra for retrieval
  • EventBridge and SQS for asynchronous work
  • Validate schema, authorization, risk, and timeout.
  • Use idempotency for side effects.
  • Do not confuse Gateway connectivity with business permission.
Model Layer
  • Interpret the supplied context.
  • Propose an action or produce the final answer.
  • Foundation models through Amazon Bedrock
  • Custom or controlled endpoints through SageMaker AI
  • Predict tokens; do not grant permissions.
  • Do not provide transaction guarantees.
  • Do not act as authoritative durable memory.
User → Interface → Agent Controller → Model
                         ↕
                       Memory
                         ↓
                Tools / Retrieval / Workflows

1. Start with the architecture problem

AWS AI application flow
☁️ AWS AI application request sequence

2. Amazon Bedrock

2.1 Inference choices

2.2 Bedrock application capabilities

3. Amazon Bedrock AgentCore

3.1 AgentCore versus Bedrock Agents Classic versus Step Functions

3.2 Industrial example: plant-maintenance agent

Production industrial maintenance agent using Amazon Bedrock AgentCore
🏭 Production AgentCore sequence: diagnose freely, mutate only with approval

4. Amazon Bedrock versus SageMaker AI

5. Knowledge Bases for Amazon Bedrock

6. Amazon OpenSearch Service

7. Amazon Kendra

8. Kendra versus OpenSearch versus Bedrock Knowledge Bases

9. Supporting AWS services by architecture role

9.1 Entry, identity, and protection

9.2 Compute and orchestration

9.3 Data and state

9.4 Encryption, secrets, and operations

10. Reference AWS decision flow

Need a managed foundation-model API?
  └─ Bedrock

Need custom training, serving code, hardware, or ML lifecycle control?
  └─ SageMaker AI

Need changing/private knowledge?
  └─ RAG
      ├─ managed standard Bedrock integration → Bedrock Knowledge Bases
      ├─ custom lexical/vector/hybrid search  → OpenSearch
      └─ enterprise connectors + ACL search  → Kendra

Need a known multi-step AWS process?
  └─ Step Functions / application workflow

Need dynamic tool choice?
  ├─ new agent/runtime implementation → AgentCore
  └─ existing action-group workload    → Bedrock Agents Classic / migration review

Need known durable states, compensation, or human approval?
  └─ Step Functions, optionally invoking an AgentCore agent

11. AWS architecture review checklist

For how retrieval works internally, see AI knowledge bases. For vendor-neutral security, reliability, cost, and evaluation, see AI infrastructure and evaluation.

Official references

Contents