How gustavoconti-cloud/postgresql16-migration-lab works
This repository is supporting code for a synthetic PostgreSQL 16 migration laboratory, not a production migration service. The operator’s workflow is to configure and provision a disposable AWS lab, run PostgreSQL-to-RDS migration experiments with DMS, observe controlled mismatches and writer barriers, collect and validate cutover evidence, then audit and clean up resources. The graph preserves those documented stages and the safety, guardrail, and cost branches. Some stage connections are documented only at the README level; unsampled implementation details are not inferred.
Main entry points: aws_context.py Lab context · dms_runtime.py DMS controls · build_template.py Lab infrastructure · ssm_runtime.py SSM controls
Components 17
Migration laboratory
- Lab infrastructure
scripts/repro/scripts/infra/build_template.py - Migration harness
scripts/repro/scripts/harness/lab_harness.py - DMS controls
scripts/repro/scripts/control/dms_runtime.py
Operator controls
- Lab context
scripts/repro/scripts/control/aws_context.py - SSM controls
scripts/repro/scripts/control/ssm_runtime.py - Evidence export
scripts/repro/scripts/control/export_evidence.py - Cutover proof
scripts/repro/scripts/control/make_g6_proof.py
Safety and verification
- Guardrail builder
scripts/repro/scripts/guardrails/build_guardrail.py - Policy tightening
scripts/repro/scripts/guardrails/tighten_policy.py - Expiry handler
scripts/repro/scripts/guardrails/ttl_handler.py - Lab cleanup
scripts/repro/scripts/control/cleanup_lab.py - Cleanup audit
scripts/repro/scripts/verification/verify_cleanup.py - Tag audit
scripts/repro/scripts/verification/verify_tags.py - Tag correction
scripts/repro/scripts/verification/apply_required_tags.py - Runtime cost estimate
scripts/repro/scripts/verification/estimate_runtime_cost.py
Other components
- Operator
- AWS services
Connections 24
- Operator → Lab context: configures
scripts/repro/scripts/control/aws_context.py - Lab context → Lab infrastructure: supplies bindings
scripts/repro/scripts/infra/build_template.py - Operator → Lab infrastructure: builds lab
README.md - Operator → Migration harness: runs experiments
README.md - Operator → DMS controls: controls replication
scripts/repro/scripts/control/dms_runtime.py - DMS controls → Lab context: validates bindings
scripts/repro/scripts/control/dms_runtime.py - Operator → SSM controls: runs remote commands
scripts/repro/scripts/control/ssm_runtime.py - SSM controls → Lab context: validates instance
scripts/repro/scripts/control/ssm_runtime.py - Operator → Evidence export: exports evidence
scripts/repro/scripts/control/export_evidence.py - Evidence export → SSM controls: reads command output
scripts/repro/scripts/control/export_evidence.py - Operator → Cutover proof: validates evidence
scripts/repro/scripts/control/make_g6_proof.py - Operator → Guardrail builder: builds guardrail
scripts/repro/scripts/guardrails/build_guardrail.py - Operator → Policy tightening: tightens policy
scripts/repro/scripts/guardrails/tighten_policy.py - Operator → Expiry handler: expires resources
README.md - Operator → Lab cleanup: cleans lab
scripts/repro/scripts/control/cleanup_lab.py - Operator → Cleanup audit: checks cleanup
scripts/repro/scripts/verification/verify_cleanup.py - Operator → Tag audit: audits tags
scripts/repro/scripts/verification/verify_tags.py - Tag correction → Tag audit: reuses tag readers
scripts/repro/scripts/verification/apply_required_tags.py - Operator → Tag correction: applies tags
scripts/repro/scripts/verification/apply_required_tags.py - Operator → Runtime cost estimate: estimates cost
README.md - Lab infrastructure → AWS services: defines resources
README.md - DMS controls → AWS services: controls DMS
scripts/repro/scripts/control/dms_runtime.py - Lab cleanup → AWS services: tears down resources
scripts/repro/scripts/control/cleanup_lab.py - Cleanup audit → AWS services: inventories resources
scripts/repro/scripts/verification/verify_cleanup.py