Block 4 — Teardown¶
Duration: 30 min
Run the Teardown Script¶
--dry-run prints every command the script would run without executing any of
them — use it to preview the teardown plan on a shared slot before running it
for real:
The script destroys resources in order to respect dependencies:
- IoT Things and their certificates
- IoT Thing Group
- IoT Topic Rule (MSK bridge)
- IoT Provisioning Template
- EC2 instances
- EKS namespace (participant namespace on the shared cluster)
- Detach from the shared MSK cluster — disassociate this slot's SASL/SCRAM secret and delete its per-slot edge topics (the cluster itself is shared and is never deleted by a slot teardown)
- S3 buckets (Iceberg data + RisingWave state)
- Athena workgroup
- Secrets Manager secrets (claim cert, MSK SCRAM creds)
- SSM parameters (k3s token, kubeconfig)
The shared VPCs (workshop-edge, workshop-cloud), the shared MSK cluster,
and the shared EKS cluster are preserved for the next session or reuse —
a per-slot teardown only removes that slot's own resources and its footprint
on the shared clusters (EKS namespace, MSK SCRAM association + topics).
Warning
Once teardown completes, all device state, telemetry history, and shadow state is destroyed. Export any data you want to keep beforehand.
Wrap-Up (30 min)¶
Open Q&A
PoC Scoping
What would Phase 1 look like in your environment?
- 10 lab devices
- IoT Jobs + Device Client
- Two handler scripts (telemetry config + health heartbeat)
- Named shadows for app version + health
- No edge K8s — cloud-only analytics to start
- Estimated deploy time: 1–2 weeks for the infrastructure, 1 week for the UI
Reference Architecture Handout
Available in Reference → Architecture Decisions.