On This Page

Home / Cribl as Code/ Terraform Provider (Preview)/Cribl Terraform Provider Code Examples

Cribl Terraform Provider Code Examples

Preview Feature

The Cribl Terraform provider is a Preview feature that is still being developed. We do not recommend using it in a production environment, because the feature might not be fully tested or optimized for performance, and related documentation could be incomplete.

Please continue to submit feedback through normal Cribl support channels, but assistance might be limited while the feature remains in Preview.

The Terraform provider code example in this section demonstrates how to use the Cribl Terraform provider to configure Cribl resources in Cribl.Cloud, hybrid, and on-prem deployments.

Before using the code example, follow the instructions to authenticate with the Terraform provider. If you prefer, you can configure authentication with environment variables or a credentials file to keep sensitive information out of your Terraform configuration.

About Code Examples

Code examples require you to authenticate with the Cribl Terraform provider. Read the Terraform provider authentication documentation to learn how to configure authentication. The API Credential (Cribl.Cloud and hybrid) or login credentials (on-prem) that you use must have the necessary Permissions for the operations in the code examples.

Replace the variables in code examples with the corresponding information for your Cribl deployment.

For on-prem deployments, to use https in request URLs, you must configure Transport Layer Security (TLS).

Code examples do not include all available resource arguments. For a complete list of arguments for specific resources, refer to the documentation in the Terraform Registry.