How aws-samples/sample-aws-devops-agent-interactive-demo works
This is an AWS CDK demo for breaking and repairing six network scenarios while AWS DevOps Agent investigates failures. The user workflow runs from the dashboard’s Break action through infrastructure changes, CloudWatch alarms, an SNS-triggered webhook, agent investigation, and a dashboard status/event view; Fix restores the scenario. The graph preserves the documented network, compute, traffic generation, authentication, PCAP/MCP, image-build, agent, and dashboard subsystems. Stack wiring and selected runtime behavior are excerpted; other documented links are cited to the README rather than treated as inspected implementation.
Main entry points: app.ts CDK app · dashboard-stack.ts Dashboard API · devops-agent-stack.ts DevOps Agent · app.js Dashboard UI
Components 20
Dashboard experience
- Dashboard UI
cdk/frontend/app.js - Dashboard API
cdk/lib/dashboard-stack.ts - Break scenario
cdk/lambda/dashboard-break/index.ts - Fix scenario
cdk/lambda/dashboard-fix/index.ts - Event log
cdk/lambda/dashboard-events/index.ts - Health status
cdk/lambda/dashboard-health/index.ts - Dashboard auth
cdk/lib/auth-stack.ts
Demo infrastructure
- Network stack
cdk/lib/network-stack.ts - Compute stack
cdk/lib/compute-stack.ts - Traffic generator
cdk/lib/traffic-gen-stack.ts - VPC flow logs
cdk/lib/network-stack.ts - ELB access logs
cdk/lib/compute-stack.ts - CDK app
cdk/bin/app.ts
Incident workflow
- Alarm stack
cdk/lib/alarm-stack.ts - Alarm topic
cdk/lib/alarm-stack.ts - Agent webhook
cdk/lambda/webhook/index.ts
Agent and PCAP
- DevOps Agent
cdk/lib/devops-agent-stack.ts - PCAP storage and MCP
cdk/lib/pcap-mcp-stack.ts - MCP image build
cdk/lib/image-stack.ts
Other components
- Operator
Connections 35
- Operator → Dashboard UI: uses
README.md - Dashboard UI → Dashboard API: calls API
cdk/frontend/app.js - Dashboard API → Break scenario: routes break
- Dashboard API → Fix scenario: routes fix
- Dashboard API → Event log: routes events
- Dashboard API → Health status: routes health
- Dashboard UI → Dashboard auth: authenticates with
cdk/frontend/app.js - Operator → Break scenario: breaks scenario
README.md - Break scenario → Network stack: changes infrastructure
README.md - Break scenario → Compute stack: changes infrastructure
README.md - Operator → Fix scenario: requests restore
README.md - Fix scenario → Network stack: restores scenario
README.md - Fix scenario → Compute stack: restores scenario
README.md - Network stack → VPC flow logs: writes logs
cdk/lib/network-stack.ts - Compute stack → ELB access logs: writes logs
README.md - Traffic generator → Compute stack: sends traffic
cdk/lib/traffic-gen-stack.ts - Alarm stack → Alarm topic: publishes alarms
README.md - Alarm topic → Agent webhook: invokes
README.md - Agent webhook → DevOps Agent: notifies
README.md - DevOps Agent → VPC flow logs: analyzes
README.md - DevOps Agent → ELB access logs: analyzes
README.md - DevOps Agent → PCAP storage and MCP: analyzes PCAP
README.md - DevOps Agent → Event log: updates status
README.md - Event log → Dashboard UI: serves event log
README.md - Health status → Dashboard UI: serves health
cdk/frontend/app.js - MCP image build → PCAP storage and MCP: builds runtime for
- CDK app → Network stack: instantiates
cdk/bin/app.ts - CDK app → Compute stack: instantiates
cdk/bin/app.ts - CDK app → Traffic generator: instantiates
cdk/bin/app.ts - CDK app → Alarm stack: instantiates
cdk/bin/app.ts - CDK app → Dashboard auth: instantiates
cdk/bin/app.ts - CDK app → PCAP storage and MCP: instantiates
cdk/bin/app.ts - CDK app → MCP image build: instantiates
cdk/bin/app.ts - CDK app → DevOps Agent: instantiates
cdk/bin/app.ts - CDK app → Dashboard API: instantiates
cdk/bin/app.ts