Skip to content

IaC generation

Generate Terraform HCL, Kubernetes Operator YAML, and OpenAPI definitions from any alert or parsing rule—whether you're starting from an existing configuration or describing one from scratch. Review generated output before applying to production environments.

Tools

Alert IaC tools

ToolOutput formatDescription
generate_terraform_alertTerraform HCLGenerate a Terraform resource definition for the Coralogix Terraform Provider
generate_kubernetes_alertKubernetes YAMLGenerate a custom resource manifest for the Coralogix Operator
generate_openapi_alertOpenAPI JSONGenerate the API payload definition for API-first workflows

Parsing rule IaC tools

ToolOutput formatDescription
generate_terraform_parsing_ruleTerraform HCLGenerate a Terraform resource definition for the Coralogix Terraform Provider
generate_kubernetes_parsing_ruleKubernetes YAMLGenerate a custom resource manifest for the Coralogix Operator
generate_openapi_parsing_ruleOpenAPI JSONGenerate the API payload definition for API-first workflows

Output formats

FormatUse withDocumentation
Terraform HCLCoralogix Terraform ProviderDeploy and manage configurations using terraform apply
Kubernetes YAMLCoralogix OperatorDeploy configurations as Kubernetes custom resources using kubectl apply
OpenAPI JSONREST API workflowsUse the generated payload with the Coralogix API directly

Example prompts

Generate Terraform without an existing alert

Generate Terraform HCL for a P2 logs threshold alert that fires when
error count exceeds 100 in 5 minutes for the payment-service.

Generate Terraform from an existing alert

Generate the Terraform HCL for my "API Error Rate" alert.

The agent retrieves the alert, then renders the Terraform resource definition using per-type templates.

Create and export in 1 conversation

Create a P3 logs threshold alert that fires when login failures
exceed 50 in 10 minutes, then generate the Terraform HCL and
Kubernetes YAML for it.

Export a parsing rule as Kubernetes YAML

Generate the Kubernetes Operator YAML for my "Extract Request ID"
parsing rule.

Bulk export

List all alerts with "production" in the name and generate
Terraform HCL for each one.