Pulumi
This guide will show you how to use Onboardbase to securely read secrets in Pulumi
Prerequisites
- Pulumi CLI
- Node.js
- Yarn
- An Onboardbase account with a project and environment created
- Experience with Pulumi
Generate API key and Passcode
To use Onboardbase to securely read secrets in Pulumi you would need to generate an API key and passcode from your Onboardbase account.
Installation
yarn install @onboardbase/pulumi-onboardbase
Setup
import * as onboardbase from "@onboardbase/pulumi-onboardbase";
const onboardbaseSecrets = new onboardbase.Secrets("test:secrets", {
apiKey: "92TWYPQAZUA**EYTY9T66A",
passcode: "passcode",
project: "app-secrets",
environment: "development",
});
export const ADSFDSF_FROM_ONBOARDBASE = onboardbaseSecrets.secrets["ADSFDSF"];
export const WHAT_FROM_ONBOARDBASE = onboardbaseSecrets.secrets["WHAT"];
export const SECRET_FROM_ONBOARDBASE = onboardbaseSecrets.secrets["SECRET"];
Updated 12 months ago