This contains a collection of actions to use in scaffolder templates for working with HCL (Hashicorp Configuration Language). See https://github.com/hashicorp/hcl to learn more about HCL.
npm install @seatgeek/backstage-plugin-scaffolder-backend-module-hclThis contains a collection of actions to use in scaffolder templates for working with HCL (Hashicorp Configuration Language). See https://github.com/hashicorp/hcl to learn more about HCL.
``bash`From your Backstage root directory
yarn add --cwd packages/backend @seatgeek/backstage-plugin-scaffolder-backend-module-hcl
Then ensure that both the scaffolder and this module are added to your backend:
`typescript`
// In packages/backend/src/index.ts
const backend = createBackend();
// ...
backend.add(import('@seatgeek/backstage-plugin-scaffolder-backend-module-hcl'));
After that you can use the actions in your template.
- hcl:merge Merge HCL stringshcl:merge:write
- Merge HCL strings and write to a filehcl:merge:files
- Merge HCL fileshcl:merge:files:write` Merge HCL files and write to a file
-