Minio Provider: Installation & Configuration
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:
- JavaScript/TypeScript:
@pulumi/minio
- Python:
pulumi-minio
- Go:
github.com/pulumi/pulumi-minio/sdk/go/minio
- .NET:
Pulumi.Minio
- Java:
com.pulumi/minio
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:
Set the environment variables
MINIO_ENDPOINT
,MINIO_ACCESS_KEY
andMINIO_SECRET_KEY
:$ export MINIO_ENDPOINT=XXXXXXXXXXXXXX $ export MINIO_ACCESS_KEY=YYYYYYYYYYYYYY $ export MINIO_SECRET_KEY=ZZZZZZZZZZZZZZ
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.