Coralogix Terraform Provider
The Coralogix Terraform provider lets you manage Coralogix resources—alerts, dashboards, TCO policies, recording rules, SLOs, webhooks, enrichment, and more—as infrastructure code. It requires Terraform v1.3.0 or later.
For the full resource and data source reference, see the Terraform Registry. Source code and examples are on GitHub.
Prerequisites
- A Coralogix account on the domain matching your data residency region.
- A personal or team API key with permissions for the resources you intend to manage. Permission presets are recommended — they stay up to date automatically.
- Terraform installed.
Configuration
Provider block
terraform {
required_providers {
coralogix = {
source = "coralogix/coralogix"
version = "~> 3.0"
}
}
}
provider "coralogix" {
api_key = "<your API key>"
env = "<your region>" # EU1, EU2, US1, US2, AP1, AP2, AP3
}
Authentication
Set credentials explicitly in the provider block (shown above), or via environment variables:
Provider arguments
| Argument | Type | Description |
|---|---|---|
api_key | string (sensitive) | API key with permissions for the resources you are managing |
env | string | Region matching your Coralogix domain (EU1, EU2, US1, US2, AP1, AP2, AP3) |
Resources and data sources
The provider covers alerts, dashboards, TCO policies, recording rules, SLOs, webhooks, enrichment, and more. For the full list with usage examples, see the Terraform Registry documentation.
Report issues
Found a bug or want to contribute? Open an issue on GitHub.
Support
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].