DataRobot: Installation & Configuration
Installing
This package is available for several languages/platforms:
- Python:
pulumi-datarobot - JavaScript/TypeScript:
@datarobot/pulumi-datarobot - Go:
github.com/datarobot-community/pulumi-datarobot/sdk - .NET:
DataRobotPulumi.Datarobot
Python
To use from Python, install using pip:
pip install pulumi_datarobot
Javscript/Typescript
To use from JavaScript or TypeScript in Node.js, install using either npm:
npm install @datarobot/pulumi-datarobot
or yarn:
yarn add @datarobot/pulumi-datarobot
Go
go get github.com/datarobot-community/pulumi-datarobot/sdk/go/...
.NET
To use from .NET, install using dotnet add package:
dotnet add package DataRobotPulumi.Datarobot
YAML
No install necessary, just run pulumi up.
Provider Binary
The DataRobot provider binary is a third party binary. It can be installed using the pulumi plugin command.
pulumi plugin install resource datarobot <version> --server github://api.github.com/datarobot-community/pulumi-datarobot
Replace the version string with your desired version.
Configuration
You must configure the DataRobot provider for Pulumi with a DataRobot API Key before the provider can be used to access and manage items in your DataRobot account.
datarobot:apikey(environment:DATAROBOT_API_TOKEN) - the API key fordatarobot
Once you have your API Key, there are two ways to provide it to Pulumi:
Set the environment variable for the preferred method. For example, to set the environment variable for an API Key:
$ export DATAROBOT_API_TOKEN=XXXXXXXXXXXXXXIf you prefer to store your API Key alongside your Pulumi stack for easy multi-user access, use configuration to set them.
$ pulumi config set pulumi-datarobot:apikey --secret Value: <paste api key here>
Make sure to pass --secret when setting any sensitive data (in this example pulumi-datarobot:apikey) so that it’s properly encrypted. The complete list of configuration parameters is in the DataRobot provider for Pulumi README.