# ndaziramiyep/aws_module01_lab architecture

> Architecture diagram of the GitHub repository ndaziramiyep/aws_module01_lab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ndaziramiyep/aws_module01_lab
- Repository: https://github.com/ndaziramiyep/aws_module01_lab

## Overview

This repository defines and deploys secure engineer onboarding for Onward Logistics. The main workflow is a reviewed Git change, synchronized into a CloudFormation stack that provisions role-specific users, credentials, groups, and permission boundaries. The stack also establishes audit logging, temporary external-auditor access, and budget alerts; a separate script verifies access and produces evidence. The graph follows relationships documented in the README; no source excerpts were available to confirm additional implementation details.

Main entry points: [`templates/onboarding.yaml`](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml) (Onboarding stack), [`git-sync/connection-and-roles.yaml`](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/git-sync/connection-and-roles.yaml) (Git sync bootstrap), [`onboarding-deployment.yaml`](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/onboarding-deployment.yaml) (Git sync configuration), [`verify-access.sh`](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/verify-access.sh) (Access verification)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["Deployment"]
  node_repo[("Git repository")]
  node_bootstrap["Git sync bootstrap"]
  node_deployment["Git sync configuration"]
  node_stack["Onboarding stack<br/>[onboarding.yaml]"]
end

subgraph group_access["Identity and Access"]
  node_users["Engineer users<br/>[onboarding.yaml]"]
  node_groups["Job groups<br/>[onboarding.yaml]"]
  node_boundaries["Permission boundaries<br/>[onboarding.yaml]"]
  node_credentials["First-login secrets<br/>[onboarding.yaml]"]
  node_auditor["Auditor role<br/>[onboarding.yaml]"]
end

subgraph group_oversight["Audit and Assurance"]
  node_audittrail["CloudTrail<br/>[onboarding.yaml]"]
  node_auditbucket[("Audit bucket<br/>[onboarding.yaml]")]
  node_budget["Cost budget<br/>[onboarding.yaml]"]
  node_verify["Access verification<br/>[verify-access.sh]"]
  node_evidence["Evidence output"]
end

node_engineer(("Engineer"))
node_partner(("Outside auditor"))
node_owner(("Budget owner"))

node_engineer -->|"commits changes"| node_repo
node_repo -->|"syncs configuration"| node_deployment
node_deployment -->|"deploys template"| node_stack
node_bootstrap -->|"connects Git"| node_repo
node_bootstrap -->|"provides deploy role"| node_stack
node_stack -->|"provisions"| node_users
node_stack -->|"provisions"| node_groups
node_stack -->|"provisions"| node_boundaries
node_stack -->|"provisions"| node_credentials
node_stack -->|"provisions"| node_auditor
node_stack -->|"provisions"| node_audittrail
node_stack -->|"provisions"| node_auditbucket
node_stack -->|"provisions"| node_budget
node_users -->|"joins role group"| node_groups
node_users -->|"capped by"| node_boundaries
node_credentials -->|"sets first login"| node_users
node_audittrail -->|"writes logs"| node_auditbucket
node_partner -->|"assumes role"| node_auditor
node_budget -->|"emails alerts"| node_owner
node_verify -->|"produces report"| node_evidence

click node_bootstrap "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/git-sync/connection-and-roles.yaml"
click node_deployment "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/onboarding-deployment.yaml"
click node_stack "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_users "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_groups "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_boundaries "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_credentials "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_auditor "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_audittrail "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_auditbucket "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_budget "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml"
click node_verify "https://github.com/ndaziramiyep/aws_module01_lab/blob/main/verify-access.sh"
click node_evidence "https://github.com/ndaziramiyep/aws_module01_lab/tree/main/evidence"

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_repo,node_bootstrap,node_deployment,node_stack toneBlue
class node_users,node_groups,node_boundaries,node_credentials,node_auditor toneAmber
class node_audittrail,node_auditbucket,node_budget,node_verify,node_evidence toneMint
class node_engineer,node_partner,node_owner toneIndigo
```

## Components

### Deployment

- **Git repository**
- [Git sync bootstrap](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/git-sync/connection-and-roles.yaml): `git-sync/connection-and-roles.yaml`
- [Git sync configuration](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/onboarding-deployment.yaml): `onboarding-deployment.yaml`
- [Onboarding stack](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`

### Identity and Access

- [Engineer users](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`
- [Job groups](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`
- [Permission boundaries](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`
- [First-login secrets](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`
- [Auditor role](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`

### Audit and Assurance

- [CloudTrail](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`
- [Audit bucket](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`
- [Cost budget](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/templates/onboarding.yaml): `templates/onboarding.yaml`
- [Access verification](https://github.com/ndaziramiyep/aws_module01_lab/blob/main/verify-access.sh): `verify-access.sh`
- [Evidence output](https://github.com/ndaziramiyep/aws_module01_lab/tree/main/evidence): `evidence`

### Other components

- **Engineer**
- **Outside auditor**
- **Budget owner**

## Connections

- Engineer → Git repository: commits changes (evidence: `README.md`)
- Git repository → Git sync configuration: syncs configuration (evidence: `README.md`)
- Git sync configuration → Onboarding stack: deploys template (evidence: `README.md`)
- Git sync bootstrap → Git repository: connects Git (evidence: `README.md`)
- Git sync bootstrap → Onboarding stack: provides deploy role (evidence: `README.md`)
- Onboarding stack → Engineer users: provisions (evidence: `README.md`)
- Onboarding stack → Job groups: provisions (evidence: `README.md`)
- Onboarding stack → Permission boundaries: provisions (evidence: `README.md`)
- Onboarding stack → First-login secrets: provisions (evidence: `README.md`)
- Onboarding stack → Auditor role: provisions (evidence: `README.md`)
- Onboarding stack → CloudTrail: provisions (evidence: `README.md`)
- Onboarding stack → Audit bucket: provisions (evidence: `README.md`)
- Onboarding stack → Cost budget: provisions (evidence: `README.md`)
- Engineer users → Job groups: joins role group (evidence: `README.md`)
- Engineer users → Permission boundaries: capped by (evidence: `README.md`)
- First-login secrets → Engineer users: sets first login (evidence: `README.md`)
- CloudTrail → Audit bucket: writes logs (evidence: `README.md`)
- Outside auditor → Auditor role: assumes role (evidence: `README.md`)
- Cost budget → Budget owner: emails alerts (evidence: `README.md`)
- Access verification → Evidence output: produces report (evidence: `README.md`)
