Tutorials
Learning-oriented, hands-on lessons.
Tutorials take you through a complete, repeatable exercise from start to finish. Follow them in order if you are new to Netherframe—each lesson produces a concrete, working result and links to Explanation and Reference when you want to dig deeper.
Looking for a focused recipe to solve an immediate task? Go to How-to Guides instead.
Core learning track (no cloud account required)
Complete these three tutorials in sequence using local providers (hashicorp/random and
hashicorp/null) to learn the entire Netherframe mental model safely on your own machine.
| # | Tutorial | What you will build | Time |
|---|---|---|---|
| 1 | Run your first hybrid app | Generate bindings, write a Python app, save & review a plan, apply it, verify convergence, and destroy | ~10 min |
| 2 | Inputs, stacks, and safe teardown | Parameterize environments with typed ++ inputs, loop over resources, retain state through nf destroy, and enforce Teardown[bool] |
~15 min |
| 3 | Guardrails, rollback, and audited runs | Run Python during apply with @hybrid_runtime, roll back a failed apply automatically, add @app.check gates, and run nf state verify |
~15 min |
Building real applications
Once the core workflow is comfortable, practice structuring, testing, and deploying real infrastructure:
| Tutorial | What you will build | Prerequisites |
|---|---|---|
| Deploy your first AWS app (Quickstart tracks) | A reviewed hybrid plan on AWS, tailored to a DevOps, Python developer, or CDK background | Tutorial 1, AWS bindings, AWS credentials |
| Create a multi-stack app | Separate network and storage stacks planned and applied together in one app |
Tutorial 1, AWS bindings |
| Test an app without cloud credentials | Offline pytest checks that verify resource attributes, wiring, and references |
Installed provider bindings |
| Build your first reusable construct | Extract a clean Stack interface into a Python module with a small public API |
Tutorial 1, AWS bindings |
| Review and apply a saved plan | Separate planning from applying with an immutable, integrity-checked plan artifact | Tutorial 1 |
| Generate provider bindings | Generate, pin, and install a typed Python package for any Terraform provider | Installed CLI + network/mirror access |
Migration and compatibility tutorials
| Tutorial | What you will build | Prerequisites |
|---|---|---|
| Convert a Terraform project | Typed Python generated from HCL, an adoption manifest, and a zero-recreate plan | Existing Terraform module + state export |
| Adopt existing infrastructure | Bring a live AWS bucket under Netherframe management through a reviewed import plan | AWS bindings + existing bucket |
| Export Terraform configuration | Synthesize .nf.out/ Terraform JSON for an existing Terraform or OpenTofu runner |
Installed bindings |
| Move Terraform/OpenTofu state to S3 | Bootstrap and migrate a legacy compatibility stack from local state to S3 | AWS credentials + Terraform/OpenTofu |
Operational walkthroughs
| Tutorial | What you will practice |
|---|---|
| Promote across environments | Keep environment inputs and state boundaries explicit from dev to prod |
| Debug a failed deploy | Isolate a failing plan or apply boundary and select the right recovery path |