📄️ Anatomy of a Module
The pieces a module of your own is made of (model, module, resource, anchor, overlay), their file layout, the create-* generators, registration, and the order to build them in.
📄️ Create a Module
Writing a module of your own, its schema of inputs, its onInit, failing early on bad input, stating its facts, and using it from octo.yaml.
📄️ Create a Model
Writing a model of your own, a new kind of node in the graph, its serialized shape, its id, behaviour on it, and where it attaches.
📄️ Create a Terraform Resource
Writing a Terraform resource class, its schema, what a change replaces, unique names that let it move, data a destroy loses, parents, references and ordering.
📄️ Create an External Resource
Writing a resource for something with no Terraform provider, created and deleted by your own code calling an API, its actions, limits and when it is worth it.
📄️ Create an Anchor
Writing an anchor that exposes a model's data to other modules, its schema, attaching it, and what consumers do with it.
📄️ Create an Overlay
Writing an overlay that joins two anchors, its schema, its action, which side it may write on, and when not to write one.
📄️ Testing a Module
Testing a module with TestModuleContainer, the surrounding graph, how far the lifecycle runs, what to assert, testing a change, and testing against real infrastructure.
📄️ Documenting a Module
The JSDoc on a module and its input schema: the first paragraph a reader chooses by, the @group that files it, its facts in @limit, @cost, @replaces, @downtime and @losesData, an @example, and how an agent's index lists your modules.
📄️ Publishing a Library
Publishing your modules as an npm package, what to export, naming, depending on Octo, and making breaking changes.