RunPod: Installation & Configuration
Installation
The RunPod provider is available as a package in these Pulumi languages:
- JavaScript/TypeScript:
@runpod-infra/pulumi
- Python:
runpodinfra
- Go:
github.com/runpod/pulumi-runpod-native/tree/main/sdk/go/runpod
- Pulumi YAML
Pulumi guide
Create an empty directory and navigate inside
mkdir -p empty
cd empty
Create a new pulumi stack:
pulumi new
A dropdown box will appear. Please select a minimal project from in there. For example, if you prefer using Python, you would select the following:
python A minimal Python Pulumi program
Then populate the entrypoint file (main.py/main.go/index.ts) with the your data. Please use the guide below to understand what parameters you can pass. For Python, please remember to activate the virtual environment.
Go
To use from Go, use go get
to grab the latest version of the library:
go get github.com/runpod/pulumi-runpod-native/sdk/go/runpod
We advise you to pin to a specific version.
Node.js (JavaScript/TypeScript)
To use from JavaScript or TypeScript in Node.js, install using either npm
:
npm install @runpod-infra/pulumi
or yarn
:
yarn add @runpod-infra/pulumi
Python
Please activate the virtual environment created when you ran the pulumi new
command:
source venv/bin/activate
Then install the official pulumi package from our pip repository:
pip install runpodinfra
Configuration
To begin with, please set your RunPod API key using Pulumi.
pulumi config set runpod:token --secret