Rabbitmq Provider: Installation & Configuration
The Pulumi RabbitMQ provider uses the RabbitMQ SDK to manage and provision resources.
Installation
The RabbitMQ provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/rabbitmq
- Python:
pulumi-rabbitmq
- Go:
github.com/pulumi/pulumi-rabbitmq/sdk/v3/go/rabbitmq
- .NET:
Pulumi.Rabbitmq
- Java:
com.pulumi/rabbitmq
Configuring Credentials
Pulumi relies on the RabbitMQ SDK to authenticate requests from your computer to RabbitMQ. Your credentials are never sent to pulumi.com. The Pulumi RabbitMQ Provider needs to be configured with RabbitMQ 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
RABBITMQ_ENDPOINT
,RABBITMQ_USERNAME
andRABBITMQ_PASSWORD
:$ export RABBITMQ_ENDPOINT=XXXXXXXXXXXXXX $ export RABBITMQ_USERNAME=YYYYYYYYYYYYYY $ export RABBITMQ_PASSWORD=ZZZZZZZZZZZZZZ
Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:
$ pulumi config set rabbitmq:endpoint XXXXXXXXXXXXXX $ pulumi config set rabbitmq:username YYYYYYYYYYYYYY --secret $ pulumi config set rabbitmq:password ZZZZZZZZZZZZZZ --secret
Remember to pass --secret
when setting rabbitmq:username
and rabbitmq:password
so that they are properly encrypted. The complete list of
configuration parameters is in the RabbitMQ provider README.