Terraform Chronicle
July 21, 2026 · View on GitHub
Terraform Chronicle
Terraform provider for Chronicle (now known as Google Security Operations SIEM)
⚠️ Deprecated
This provider is deprecated and no longer maintained. It uses Google's legacy Backstory and Ingestion APIs, which Google is shutting down on 20 July 2027. New SecOps instances provisioned from 26 October 2026 cannot use these APIs at all. See Google SecOps release notes (20 July 2026) for details.
Migrate to the official
hashicorp/googleprovider, which supports Chronicle resources via the modern Chronicle API:
This provider Official replacement chronicle_feed_*google_chronicle_feedchronicle_rulegoogle_chronicle_rule+google_chronicle_rule_deploymentchronicle_reference_listgoogle_chronicle_reference_listchronicle_rbac_subjectNo direct equivalent — manage via Google SecOps UI or Chronicle API Timeline:
- Now: No new features or resource types will be added.
- 20 July 2027: Legacy APIs are turned off; this provider will stop working. This repository will be archived aligned with Google's deprecation schedule.
For migration guidance, see Product deprecations, Migrate from legacy SIEM API to Chronicle API, and Provision Google SecOps resources with Terraform.
Documentation
Find available docs here.
Building The Provider
make build
Debugging
TF examples can be found under examples/ directory, and can be used for debugging purposes.
- run
./debug.shscript in this repo root and init target workspace (terraform init) - attach with your debugger to port
2345, this will also print required gRPC debug info to stdout - note the env variable from the above output (you'll need it in the next step)
- set breakpoints in code and run a plan (
TF_REATTACH_PROVIDERS='{...}' terraform plan) - re-run the above command as many times as needed (provider process keeps running after the plan has finished)
Release
After merging to master, GitHub Action will push new tag, which in turn will trigger goreleaser.
goreleaser action will build and upload to GitHub release.
Developing the Provider
If you wish to work on the provider, you'll first need Go installed on your machine (version 1.21+ is required).
To compile the provider, run make build.
make build
In order to test the provider, you can simply run make test.
make test
Running Acceptance Tests
Set the required environment variables and use one of these make targets:
make testacc-v1- Run V1 feed tests onlymake testacc-v2- Run V2 feed tests onlymake testacc- Run all tests (see limitations below)
V1 vs V2 Feed Testing Constraints
Important: Google Chronicle SIEM instances can only create one feed version at a time (either V1 or V2), which affects how you run acceptance tests.
How feed versions work:
- When you switch a SIEM to V2 feeds, you can no longer create new V1 feeds
- However, any existing V1 feeds remain active and continue running (at time of writing)
- This means you cannot run the full
make testaccsuite against a single SIEM instance
Recommended approach:
Match your test target to your SIEM configuration:
- V1-configured SIEM → use
make testacc-v1 - V2-configured SIEM → use
make testacc-v2
Running the wrong test suite will fail because the SIEM won't allow creating feeds of the non-configured version.
Note: You could theoretically run make testacc with multiple SIEM instances (one V1-configured, one V2-configured), but this setup is untested.
The order of precedence for chronicle's API configuration is the following: Credential file through TF > Access Token through TF > Environment Variable.
Environment variables always take the lowest precedence
Note: Acceptance tests create real resources
| Environment variables | Description |
|---|---|
| CHRONICLE_BACKSTORY_CREDENTIALS | backstory base64 credentials |
| CHRONICLE_BIGQUERY_CREDENTIALS | bigquery base64 credentials |
| CHRONICLE_INGESTION_CREDENTIALS | ingestion base64 credentials |
| CHRONICLE_FORWARDER_CREDENTIALS | forwarder base64 credentials |
| CHRONICLE_REGION | API region |
Using a local version of the provider
Firstly install the provider by running:
make install
Modify your .terraformrc file as the following:
provider_installation {
filesystem_mirror {
path = "<HOME_PATH>/.terraform.d/plugins"
include = ["github.com/form3tech-oss/chronicle"]
}
direct {
exclude = ["github.com/form3tech-oss/chronicle"]
}
}
Now leverage the provider by using:
terraform {
required_providers {
chronicle = {
source = "github.com/form3tech-oss/chronicle"
}
}
}