Skip to content

datarobot-community/terraform-provider-datarobot

Repository files navigation

Terraform provider for DataRobot (Preview)

terraform-provider-datarobot is the Terraform provider for interacting with the DataRobot API.

Resources

Getting Started

Prerequisites

Before using terraform-provider-datarobot, ensure the following tools are installed on your local machine:

Running the Low-Code Monitored RAG Example

  1. Clone the repository:
git clone https://github.com/datarobot-community/terraform-provider-datarobot.git
  1. Prepare the environment:
  • Install Go (version >= 1.16).
  • Navigate to the repository directory:
    cd terraform-provider-datarobot
  • Run:
    go mod tidy
    make install
  1. Set up the example:
  • Navigate to the desired example directory:

    cd examples/workflows/low_code_rag

    or

    cd examples/workflows/notebooks
  • Set the DATAROBOT_API_TOKEN environment variable with your DataRobot API key:

    export DATAROBOT_API_TOKEN=<YOUR_API_KEY>
  • For the RAG example, create a terraform.tfvars file in the low_code_rag directory with the following content:

    use_case_name = "<use case name>"
    google_cloud_credential_source_file = "<source_file>"

    Replace <use case name> with your desired use case name and <source_file> with the path to your Google Cloud service account key file.

  1. Initialize and apply the Terraform configuration:
  • Initialize the provider:
    terraform init
  • Preview the changes:
    terraform plan
  • Apply the configuration:
    terraform apply
    Confirm with yes when prompted.
  1. Access the resources:
  • After successful execution, access the generated resources using the provided URLs:
    Apply complete! Resources: 5 added, 0 changed, 0 destroyed.
    
    Outputs:
    
    datarobot_qa_application_url = "<your_qa_application_url>"
  1. Clean up (optional):
  • To delete the resources:
    terraform destroy
    Confirm with yes when prompted.