Hubfile
Hubfiles defines a stack, parameters and components. Each component has it's own manifest.
- Stack manifest file
hub.yaml
and optionalparam.yaml
defined on the top level. - Components are defined in the
components
directory. Each have a hubfilehub-component.yaml
that defines the structure of the component and rules how to deploy it.
Directory Structure
While directory structure has not been fixed. yet we recommend the following:
├── bin
│ └── deployment-hook.sh
├── components
│ ├── component1
│ │ ├── hub-component.yaml
│ │ ├── deploy.sh
│ │ └── undeploy.sh
│ └── component2
│ ├── hub-component.yaml
│ └── main.tf
├── hub.yaml
└── params.yaml
In this example thecomponent1
uses shell to deploy. It deploy.sh
and undeploy.sh
.
The component2
is using Terraform, and contains *.tf
file (or files)
Hubfile hub.yaml
can define a deployment hooks, something that needs to be executed before or after individual component deployment. This webhook has been placed in the bin
directory.
See Also
Last update:
May 6, 2023