Minio

v0.5.0 published on Thursday, Aug 18, 2022 by Pulumi

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

Installation

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

Configuring Credentials

Pulumi relies on the Minio SDK to authenticate requests from your computer to Minio. Your credentials are never sent to pulumi.com. The Pulumi Minio Provider needs to be configured with Minio 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:

  1. Set the environment variables MINIO_ENDPOINT, MINIO_ACCESS_KEY and MINIO_SECRET_KEY:

    $ export MINIO_ENDPOINT=XXXXXXXXXXXXXX
    $ export MINIO_ACCESS_KEY=YYYYYYYYYYYYYY
    $ export MINIO_SECRET_KEY=ZZZZZZZZZZZZZZ
    
  2. Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:

    $ pulumi config set minio:minioServer XXXXXXXXXXXXXX
    $ pulumi config set minio:minioAccessKey YYYYYYYYYYYYYY --secret
    $ pulumi config set minio:minioSecretKey ZZZZZZZZZZZZZZ --secret
    

Remember to pass --secret when setting minio:minioAccessKey and minio:minioSecretKey so that they are properly encrypted. The complete list of configuration parameters is in the Minio provider README.