Cribl Terraform Provider Code Examples
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
httpsin request URLs, you must Configure 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.