Sumologic Provider: Installation & Configuration
The Pulumi Sumo Logic provider uses the Sumo Logic SDK to manage and provision resources.
Installation
The Sumo Logic provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/sumologic
- Python:
pulumi-sumologic
- Go:
github.com/pulumi/pulumi-sumologic/sdk/go/sumologic
- .NET:
Pulumi.SumoLogic
- Java:
com.pulumi/sumologic
Configuring Credentials
Pulumi relies on the Sumo Logic SDK to authenticate requests from your computer to Sumo Logic. Your credentials are never sent to pulumi.com. The Pulumi Sumo Logic Provider needs to be configured with Sumo Logic credentials before it can be used to create resources.
Once the credentials are obtained, there are two ways to communicate your authorization tokens to Pulumi:
Set the environment variables for
SUMOLOGIC_ACCESSID
,SUMOLOGIC_ACCESSKEY
andSUMOLOGIC_ENVIRONMENT
:$ export SUMOLOGIC_ACCESSID=XXXXXXXXXXXXXX $ export SUMOLOGIC_ACCESSKEY=YYYYYYYYYYYYYY $ export SUMOLOGIC_ENVIRONMENT=ZZZZZZZZZZZZZZ
Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:
$ pulumi config set sumologic:accessId XXXXXXXXXXXXXX --secret $ pulumi config set sumologic:accessKey YYYYYYYYYYYYYY --secret $ pulumi config set sumologic:environment ZZZZZZZZZZZZZZ
Remember to pass --secret
when setting sumologic:accessId
and sumologic:accessKey
so that they are properly encrypted. The complete list of
configuration parameters is in the Sumo Logic provider README.