kong-pulumi
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

kong-pulumi

WIP Pulumi provisioner for Kong Konnect data planes

Usage

Configure secrets:

pulumi config set --secret konnectUsername "<email>"
pulumi config set --secret konnectPassword "<password>”

Call the provisioner in your code:

import * as kong from "kong-pulumi";

const config = new pulumi.Config()

// Create a server here
const server = ...;

// Provision!
const connection = {
  host: server.publicIp,
  username: "ubuntu",
  privateKey: fs
    .readFileSync("/path/to/private/key.pem")
    .toString(),
  passphrase: "",
};

const auth: kong.KongUsernameLogin = {
  username: config.require("konnectUsername"),
  password: config.require("konnectPassword"),
};

const provisionDp = new kong.CreateKongDataPlane(
  "provision-data-plane",
  {
    connection,
    auth,
    version: "2.4.1",
  },
  { dependsOn: server }
);

Readme

Keywords

Package Sidebar

Install

npm i kong-pulumi

Weekly Downloads

1

Version

0.0.3

License

Apache-2.0

Unpacked Size

31.5 kB

Total Files

15

Last publish

Collaborators

  • konginc