How terrakube-io/terrakube-extensions works
Terrakube Extensions is a collection of user-invoked Bash scripts and Groovy integrations that customize workspace job workflows. Users configure ordered, before/after commands in Terrakube Configuration Language; Terrakube loads the extensions into the job context, where injected workspace and job values are available to scripts. Documented capabilities include Terraform-related tools, messaging, cost estimation, and policy support. The repository also contains Rego policies and a Terratag command template. Source excerpts were not available, so relationships are limited to those documented in the README.
Main entry points: helloWorld.sh Hello World script · terratag.sh Terratag script · TerraTag.groovy Terratag integration · Context.groovy Injected job context
Components 18
Job workflow
- Configured commands
- Injected job context
groovy/Context/Context.groovy
Bash extensions
- Hello World script
bash/helloWorld/helloWorld.sh - Terratag script
bash/terratag/terratag.sh
Groovy extensions
- Terratag integration
groovy/TerraTag/TerraTag.groovy - Infracost integration
groovy/Infracost/Infracost.groovy - Terrascan integration
groovy/Terrascan/Terrascan.groovy - OPA integration
groovy/Opa/Opa.groovy - SendGrid integration
groovy/Sendgrid/Sendgrid.groovy - Snyk integration
groovy/Snyk/Snyk.groovy - Slack integration
groovy/SlackApp/SlackApp.groovy - Teams integration
groovy/MicrosoftTeams/MicrosoftTeams.groovy - Teams message card
groovy/MicrosoftTeams/MessageCard.groovy
Policies and templates
- Plan information policy
policy/plan_information.rego - Terraform policy
policy/terraform.rego - Terratag commands
templates/terratag/commands.yaml
Other components
- Workflow author
- Terrakube job runtime
Connections 17
- Workflow author → Configured commands: defines commands
README.md - Configured commands → Terrakube job runtime: configures workflow
README.md - Terrakube job runtime → Injected job context: injects fields
README.md - Terrakube job runtime → Hello World script: loads scripts
README.md - Terrakube job runtime → Terratag script: loads scripts
README.md - Terrakube job runtime → Terratag integration: loads classes
README.md - Configured commands → Hello World script: invokes script
README.md - Configured commands → Terratag script: invokes script
README.md - Configured commands → Terratag integration: invokes class
README.md - Configured commands → Infracost integration: supports tool
README.md - Configured commands → Terrascan integration: supports tool
README.md - Configured commands → OPA integration: supports tool
README.md - Configured commands → SendGrid integration: supports tool
README.md - Configured commands → Snyk integration: supports tool
README.md - Configured commands → Slack integration: supports tool
README.md - Configured commands → Teams integration: developing integration
README.md - Configured commands → Terratag commands: reuses commands