The Komodor Resource Provider lets you manage Komodor resources with Pulumi.
It is a Pulumi Terraform Bridge provider wrapping the Komodor Terraform provider. This is a community project — it is not published to the Pulumi Registry, npm, PyPI, or NuGet, and it is not an official Komodor or Pulumi product.
Because this provider is distributed only via GitHub Releases, you generate a local SDK for your project rather than installing a published package. This works for every supported language.
First, install the provider plugin from this repo's releases:
pulumi plugin install resource komodor 0.1.0 \
--server github://api.github.com/phillipedwards/pulumi-komodorThen, from inside your Pulumi project, generate and wire up the SDK:
pulumi package add komodor@0.1.0This writes the SDK into your project, records the dependency in Pulumi.yaml, and prints the import
path to use. Subsequent pulumi up runs fetch the plugin automatically — the release download URL is
baked into the generated SDK, so collaborators and CI do not need the --server flag.
The generated package is named per language:
| Language | Package | Import |
|---|---|---|
| Node.js | @phillipedwards/pulumi-komodor |
import * as komodor from "@phillipedwards/pulumi-komodor"; |
| Python | pulumi_komodor |
import pulumi_komodor as komodor |
| Go | github.com/phillipedwards/pulumi-komodor/sdk/go/komodor |
import ".../sdk/go/komodor" |
| .NET | Pulumi.Komodor |
using Pulumi.Komodor; |
Go users can skip pulumi package add and depend on the committed SDK module directly:
go get github.com/phillipedwards/pulumi-komodor/sdk@v0.1.0The plugin still has to be installed with the pulumi plugin install command above, or be resolvable
from the release URL embedded in the SDK.
This provider exposes the following resources:
komodor.Actionkomodor.Kuberneteskomodor.Monitorkomodor.Policykomodor.PolicyRoleAttachmentkomodor.Role
And the following data sources:
komodor.getKuberneteskomodor.getPolicykomodor.getRole
The following configuration points are available for the komodor provider:
-
komodor:apiKey— the API key used to authenticate with Komodor. Can also be supplied via theKOMODOR_API_KEYorKOMODOR_TOKENenvironment variables.
Set it as a secret:
pulumi config set --secret komodor:apiKey <your-api-key>import * as komodor from "@phillipedwards/pulumi-komodor";
const viewer = new komodor.Role("viewer", {
name: "viewer",
});There is no Pulumi Registry documentation for this provider. For the available fields on each resource, consult the generated SDK in your project, the provider schema, or the upstream Terraform provider docs.
See SETUP.md for build, test, and development instructions.