@pulumi/iopipe

0.1.1 • Public • Published

Pulumi IO|Pipe integration

This pacakge provides IO|Pipe integration with Pulumi programs. When imported into a Pulumi program, any serverless functions generated from JavaScript callbacks in the Pulumi program will automatically be wrapped with IO|.

const aws = require("@pulumi/aws");
const serverless = require("@pulumi/aws-serverless");

// Load the Pulumi IO| integration package
require("@pulumi/iopipe");

// Create a bucket and a function to log new object uploads
const bucket = new aws.s3.Bucket("my-bucket");
serverless.bucket.onPut("onNewObject", bucket, async (ev) => console.log(ev));
exports.bucketName = bucket.bucket;

Configuration

After importing @pulumi/iopipe into a Pulumi program, you will need to provide an IO|Pipe token via a Pulumi configuration secret. You can get your token on the "Install" page of the IO|Pipe console for your project.

$ pulumi config set --secret iopipe:token <your token here>

/@pulumi/iopipe/

    Package Sidebar

    Install

    npm i @pulumi/iopipe

    Weekly Downloads

    7

    Version

    0.1.1

    License

    Apache-2.0

    Unpacked Size

    95.8 MB

    Total Files

    5951

    Last publish

    Collaborators

    • joeduffy
    • pulumi-bot