# aws-solutions-library-samples/guidance-for-connected-mobility-on-aws architecture

> Architecture diagram of the GitHub repository aws-solutions-library-samples/guidance-for-connected-mobility-on-aws, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws
- Repository: https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws

## Overview

This repository is an AWS connected-mobility reference accelerator for fleet operators and vehicle owners. Its principal workflow ingests vehicle telemetry through direct MQTT, FleetWise Edge, OEM connectors, or the Connected Services bridge; normalizes and streams it through processors into canonical storage; then serves fleet operations and analytics through web surfaces and APIs. Separate documented journeys cover campaign-driven collection, simulation, connected-services management, and remote diagnostics. The README supplies the end-to-end data paths; sampled code is limited, so relationships not explicitly documented there are omitted.

Main entry points: [`deployment/stacks/msk_stack.py`](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/msk_stack.py) (MSK streams), [`deployment/stacks/iot_stack.py`](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/iot_stack.py) (IoT Core), [`deployment/stacks/storage_stack.py`](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/storage_stack.py) (Canonical vehicle storage), [`deployment/stacks/fwe_telemetry_stack.py`](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/fwe_telemetry_stack.py) (FleetWise Edge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Telemetry ingestion"]
  node_mqtt["MQTT direct ingest<br/>[iot_stack.py]"]
  node_fwe["FleetWise Edge"]
  node_oem["OEM1 connector<br/>[connector.py]"]
  node_csbridge["Connected Services bridge"]
  node_iot["IoT Core<br/>[iot_stack.py]"]
end

subgraph group_processing["Stream processing"]
  node_msk["MSK streams<br/>[msk_stack.py]"]
  node_normalizer["OEM telemetry transform<br/>[connector_stack.py]"]
  node_fweprocessor["FWE telemetry processor"]
  node_flink["Flink processors<br/>[flink_stack.py]"]
  node_campaignsync["Campaign sync processor<br/>[flink_stack.py]"]
end

subgraph group_product["Fleet products"]
  node_operatorui["Fleet management UI<br/>[ui_stack.py]"]
  node_csportal["Connected Services portal<br/>[App.tsx]"]
  node_campaignui["Collection campaign UI"]
  node_diagnosticsui["Diagnosis workbench"]
  node_fleetintel["Fleet intelligence API<br/>[index.py]"]
end

subgraph group_operations["Commands and simulation"]
  node_sim["Vehicle simulation"]
  node_commands["Remote commands<br/>[commands_stack.py]"]
  node_commandhandler["Command response handler"]
  node_subscription["Subscriptions and simulation API"]
end

subgraph group_platform["Platform services"]
  node_storage[("Canonical vehicle storage<br/>[storage_stack.py]")]
  node_connectedserviceapi["Connected Services APIs"]
end

node_vehicle(("Vehicles and agents"))

node_vehicle -->|"publishes telemetry"| node_mqtt
node_vehicle -->|"sends CAN signals"| node_fwe
node_fwe -->|"uploads telemetry"| node_iot
node_mqtt -->|"publishes MQTT"| node_iot
node_iot -->|"routes telemetry"| node_msk
node_fwe -->|"sends raw stream"| node_msk
node_oem -->|"emits OEM events"| node_msk
node_csbridge -->|"writes canonical data"| node_storage
node_sim -->|"publishes simulated data"| node_iot
node_msk -->|"supplies OEM events"| node_normalizer
node_normalizer -->|"emits normalized events"| node_msk
node_msk -->|"supplies raw FWE data"| node_fweprocessor
node_fweprocessor -->|"emits preprocessed data"| node_msk
node_msk -->|"supplies telemetry stream"| node_flink
node_flink -->|"persists processed data"| node_storage
node_vehicle -->|"checks in"| node_campaignsync
node_campaignsync -->|"publishes collection schemes"| node_iot
node_campaignui -.->|"uses portal APIs"| node_connectedserviceapi
node_csportal -.->|"uses portal APIs"| node_connectedserviceapi
node_csportal -->|"starts simulation"| node_subscription
node_subscription -->|"dispatches simulation"| node_sim
node_commands -->|"sends commands"| node_vehicle
node_vehicle -->|"returns command response"| node_commandhandler
node_commandhandler -->|"updates command and DTC records"| node_storage
node_diagnosticsui -.->|"requests diagnostics"| node_commands
node_fleetintel -->|"reads fleet data"| node_storage
node_operatorui -.->|"presents fleet data"| node_storage

click node_mqtt "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/iot_stack.py"
click node_fwe "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/fwe_telemetry_stack.py"
click node_oem "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/services/connectors/oem1/connector.py"
click node_csbridge "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/connected_services_consumer_stack.py"
click node_sim "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/simulation_stack.py"
click node_iot "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/iot_stack.py"
click node_msk "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/msk_stack.py"
click node_normalizer "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/connector_stack.py"
click node_fweprocessor "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/fwe_telemetry_stack.py"
click node_flink "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/flink_stack.py"
click node_campaignsync "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/flink_stack.py"
click node_storage "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/storage_stack.py"
click node_operatorui "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/ui_stack.py"
click node_csportal "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/modules/connected_services_ui/src/App.tsx"
click node_campaignui "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/modules/connected_services_ui/src/components/screens/data-model/DataCollectionCampaignsView.tsx"
click node_diagnosticsui "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/modules/connected_services_ui/src/components/screens/software/DiagnosisWorkbenchView.tsx"
click node_commands "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/commands_stack.py"
click node_commandhandler "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/services/commands/command_response_handler.py"
click node_fleetintel "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/services/fleet_intelligence/index.py"
click node_subscription "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/subscriptions_stack.py"
click node_connectedserviceapi "https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/connected_services_ui_stack.py"

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_mqtt,node_fwe,node_oem,node_csbridge,node_iot toneBlue
class node_msk,node_normalizer,node_fweprocessor,node_flink,node_campaignsync toneAmber
class node_operatorui,node_csportal,node_campaignui,node_diagnosticsui,node_fleetintel toneMint
class node_sim,node_commands,node_commandhandler,node_subscription toneRose
class node_storage,node_connectedserviceapi,node_vehicle toneIndigo
```

## Components

### Telemetry ingestion

- [MQTT direct ingest](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/iot_stack.py): `deployment/stacks/iot_stack.py`
- [FleetWise Edge](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/fwe_telemetry_stack.py): `deployment/stacks/fwe_telemetry_stack.py`
- [OEM1 connector](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/services/connectors/oem1/connector.py): `services/connectors/oem1/connector.py`
- [Connected Services bridge](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/connected_services_consumer_stack.py): `deployment/stacks/connected_services_consumer_stack.py`
- [IoT Core](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/iot_stack.py): `deployment/stacks/iot_stack.py`

### Stream processing

- [MSK streams](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/msk_stack.py): `deployment/stacks/msk_stack.py`
- [OEM telemetry transform](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/connector_stack.py): `deployment/stacks/connector_stack.py`
- [FWE telemetry processor](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/fwe_telemetry_stack.py): `deployment/stacks/fwe_telemetry_stack.py`
- [Flink processors](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/flink_stack.py): `deployment/stacks/flink_stack.py`
- [Campaign sync processor](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/flink_stack.py): `deployment/stacks/flink_stack.py`

### Fleet products

- [Fleet management UI](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/ui_stack.py): `deployment/stacks/ui_stack.py`
- [Connected Services portal](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/modules/connected_services_ui/src/App.tsx): `modules/connected_services_ui/src/App.tsx`
- [Collection campaign UI](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/modules/connected_services_ui/src/components/screens/data-model/DataCollectionCampaignsView.tsx): `modules/connected_services_ui/src/components/screens/data-model/DataCollectionCampaignsView.tsx`
- [Diagnosis workbench](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/modules/connected_services_ui/src/components/screens/software/DiagnosisWorkbenchView.tsx): `modules/connected_services_ui/src/components/screens/software/DiagnosisWorkbenchView.tsx`
- [Fleet intelligence API](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/services/fleet_intelligence/index.py): `services/fleet_intelligence/index.py`

### Commands and simulation

- [Vehicle simulation](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/simulation_stack.py): `deployment/stacks/simulation_stack.py`
- [Remote commands](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/commands_stack.py): `deployment/stacks/commands_stack.py`
- [Command response handler](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/services/commands/command_response_handler.py): `services/commands/command_response_handler.py`
- [Subscriptions and simulation API](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/subscriptions_stack.py): `deployment/stacks/subscriptions_stack.py`

### Platform services

- [Canonical vehicle storage](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/storage_stack.py): `deployment/stacks/storage_stack.py`
- [Connected Services APIs](https://github.com/aws-solutions-library-samples/guidance-for-connected-mobility-on-aws/blob/main/deployment/stacks/connected_services_ui_stack.py): `deployment/stacks/connected_services_ui_stack.py`

### Other components

- **Vehicles and agents**

## Connections

- Vehicles and agents → MQTT direct ingest: publishes telemetry (evidence: `README.md`)
- Vehicles and agents → FleetWise Edge: sends CAN signals (evidence: `README.md`)
- FleetWise Edge → IoT Core: uploads telemetry (evidence: `README.md`)
- MQTT direct ingest → IoT Core: publishes MQTT (evidence: `README.md`)
- IoT Core → MSK streams: routes telemetry (evidence: `README.md`)
- FleetWise Edge → MSK streams: sends raw stream (evidence: `README.md`)
- OEM1 connector → MSK streams: emits OEM events (evidence: `README.md`)
- Connected Services bridge → Canonical vehicle storage: writes canonical data (evidence: `README.md`)
- Vehicle simulation → IoT Core: publishes simulated data (evidence: `README.md`)
- MSK streams → OEM telemetry transform: supplies OEM events (evidence: `README.md`)
- OEM telemetry transform → MSK streams: emits normalized events (evidence: `README.md`)
- MSK streams → FWE telemetry processor: supplies raw FWE data (evidence: `README.md`)
- FWE telemetry processor → MSK streams: emits preprocessed data (evidence: `README.md`)
- MSK streams → Flink processors: supplies telemetry stream (evidence: `README.md`)
- Flink processors → Canonical vehicle storage: persists processed data (evidence: `README.md`)
- Vehicles and agents → Campaign sync processor: checks in (evidence: `README.md`)
- Campaign sync processor → IoT Core: publishes collection schemes (evidence: `README.md`)
- Collection campaign UI → Connected Services APIs: uses portal APIs
- Connected Services portal → Connected Services APIs: uses portal APIs
- Connected Services portal → Subscriptions and simulation API: starts simulation (evidence: `README.md`)
- Subscriptions and simulation API → Vehicle simulation: dispatches simulation (evidence: `README.md`)
- Remote commands → Vehicles and agents: sends commands (evidence: `README.md`)
- Vehicles and agents → Command response handler: returns command response (evidence: `services/commands/command_response_handler.py`)
- Command response handler → Canonical vehicle storage: updates command and DTC records (evidence: `services/commands/command_response_handler.py`)
- Diagnosis workbench → Remote commands: requests diagnostics
- Fleet intelligence API → Canonical vehicle storage: reads fleet data (evidence: `services/fleet_intelligence/index.py`)
- Fleet management UI → Canonical vehicle storage: presents fleet data
