# krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone architecture

> Architecture diagram of the GitHub repository krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone
- Repository: https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone

## Overview

This repository provides a small AWS Bedrock Claude FinOps router plus Terraform-defined AWS infrastructure. Its workflow selects Haiku or Sonnet by complexity, optionally adds large context for prompt caching, invokes Bedrock with guardrail configuration, and returns the reply and token-usage data. Terraform filenames indicate guardrail, IAM, and VPC PrivateLink capabilities, but their implementation and wiring were not sampled; those relationships are therefore omitted. The README is empty, so the architecture is based on the shown router and repository tree.

Main entry points: [`app/claude_router.py`](https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/app/claude_router.py) (Claude FinOps router), [`terraform/vpc_privatelink.tf`](https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/terraform/vpc_privatelink.tf) (VPC PrivateLink)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Model routing"]
  node_router["Claude FinOps router<br/>[claude_router.py]"]
end

subgraph group_security["AWS security"]
  node_guardrails["Bedrock guardrails"]
  node_iam["FinOps IAM<br/>[iam_finops.tf]"]
end

subgraph group_network["Private networking"]
  node_privatelink["VPC PrivateLink<br/>[vpc_privatelink.tf]"]
end

node_bedrock["Bedrock Runtime"]

node_router -->|"invokes Converse"| node_bedrock
node_router -->|"routes via"| node_privatelink

click node_router "https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/app/claude_router.py"
click node_guardrails "https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/terraform/bedrock_guardrails.tf"
click node_iam "https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/terraform/iam_finops.tf"
click node_privatelink "https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/terraform/vpc_privatelink.tf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_router toneBlue
class node_guardrails,node_iam toneAmber
class node_privatelink toneMint
class node_bedrock toneIndigo
```

## Components

### Model routing

- [Claude FinOps router](https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/app/claude_router.py): `app/claude_router.py`

### AWS security

- [Bedrock guardrails](https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/terraform/bedrock_guardrails.tf): `terraform/bedrock_guardrails.tf`
- [FinOps IAM](https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/terraform/iam_finops.tf): `terraform/iam_finops.tf`

### Private networking

- [VPC PrivateLink](https://github.com/krishnaprasdaidevsecopscloud-design/enterprise-bedrock-claude-platform-capstone/blob/main/terraform/vpc_privatelink.tf): `terraform/vpc_privatelink.tf`

### Other components

- **Bedrock Runtime**

## Connections

- Claude FinOps router → Bedrock Runtime: invokes Converse (evidence: `app/claude_router.py`)
- Claude FinOps router → VPC PrivateLink: routes via (evidence: `app/claude_router.py`)
