This document provides guidelines for contributing to the Ona GCP Runner Terraform module.
The easiest way to get started is to open this repository in Ona or run the included dev container locally with VS Code Dev Containers or any compatible IDE. The dev container comes pre-configured with all required tools.
If you prefer a manual setup, install the following:
| Path | Description |
|---|---|
*.tf |
Root module resources |
variables.tf |
Input variables |
outputs.tf |
Output values |
versions.tf |
Provider and Terraform version constraints |
modules/ |
Submodules |
examples/ |
Example configurations |
docs/ |
Additional documentation |
files/ |
Template files used by resources |
- Fork the repository and create a feature branch.
- Make your changes, following the conventions below.
- Run linting and formatting checks.
- Submit a pull request against
main.
This repository uses pre-commit hooks for terraform fmt, terraform-docs, shellcheck, and general file hygiene. Install the hooks once after cloning:
pre-commit installTo run all checks manually:
pre-commit run --all-filesInput and output tables in README files are generated automatically by terraform-docs via pre-commit. If you change variables.tf or outputs.tf, the tables will be updated on your next commit. You can also regenerate them manually:
pre-commit run terraform_docs --all-filesBy contributing, you agree that your contributions will be licensed under the Mozilla Public License 2.0.