New Relic: Installation & Configuration

The Pulumi New Relic provider uses the New Relic SDK to manage and provision resources.


The New Relic provider is available as a package in all Pulumi languages:

Configuring Credentials

Pulumi relies on the New Relic SDK to authenticate requests from your computer to New Relic. Your credentials are never sent to The Pulumi New Relic Provider needs to be configured with New Relic credentials before it can be used to create resources.

You can find information in the New Relic docs regarding how to create the specific keys. Once the credentials are obtained, there are two ways to communicate your authorization tokens to Pulumi:

  1. Set the environment variables NEWRELIC_API_KEY, NEW_RELIC_API_KEY and NEW_RELIC_ADMIN_API_KEY:

  2. Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:

    $ pulumi config set newrelic:accountId XXXXXXXXXXXXXX
    $ pulumi config set newrelic:apiKey YYYYYYYYYYYYYY --secret
    $ pulumi config set newrelic:adminApiKey ZZZZZZZZZZZZ --secret

Remember to pass --secret when setting newrelic:apiKey and newrelic:adminApiKey so that it is properly encrypted. The complete list of configuration parameters is in the New Relic provider README.