terraform-provider-datarobot
is the Terraform provider for interacting with the DataRobot API.
- Learn more about DataRobot
- Learn more about Terraform
- For development details, see DEVELOPMENT.md.
Before using terraform-provider-datarobot
, ensure the following tools are installed on your local machine:
- Clone the repository:
git clone https://github.com/datarobot-community/terraform-provider-datarobot.git
- Prepare the environment:
- Install Go (version >= 1.16).
- Navigate to the repository directory:
cd terraform-provider-datarobot
- Run:
go mod tidy make install
- 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 thelow_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.
- Initialize and apply the Terraform configuration:
- Initialize the provider:
terraform init
- Preview the changes:
terraform plan
- Apply the configuration:
Confirm with
terraform apply
yes
when prompted.
- 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>"
- Clean up (optional):
- To delete the resources:
Confirm with
terraform destroy
yes
when prompted.