Installation#
- To use this package, please install the Pulumi CLI first.
- This package is only available for JavaScript and TypeScript but support for other languages will be available soon.
Node.js (JavaScript/TypeScript)#
-
To use from JavaScript or TypeScript in Node.js, install using either
npm:npm install @rootly/pulumior
yarn:yarn add @rootly/pulumi -
Install the provider binary plugin. This is only needed due to an outstanding bug in with Pulumi registry
pulumi plugin install resource rootly v0.0.2 --server https://github.com/rootlyhq/pulumi-rootly/releases/download/v0.0.2Authentication#
The Pulumi Rootly Provider needs to be configured with a Rootly API token.
Once you generated the API token there are two ways to communicate your authorization token to Pulumi:
-
Set the environment variables
ROOTLY_API_TOKEN:$ export ROOTLY_API_TOKEN=cu_xxx -
Set them using
pulumi configcommand, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:$ pulumi config set rootly:apiToken cu_xxx --secret
Remember to pass
--secretwhen settingrootly:apiTokenso it is properly encrypted.