https://pulumi.com logo
#general
Title
# general
v

victorious-wall-1075

02/16/2022, 5:11 PM
Hello, is there an example of how to use Minio as backend ? I have a local minio instance that I want to use.. I tried this:
Copy code
➜ pulumi login "<s3://pulumi-bucket?endpoint=192.168.31.2:54640&disableSSL=true&s3ForcePathStyle=true>"
When I try to bring up the stack:
Copy code
➜ pulumi up
error: could not query backend for stacks: error listing stacks: could not list bucket: blob (code=Unknown): MissingRegion: could not find region configuration
Also, my minio endpoint has login/password, I am not sure where to specify that
I tried following this:
Copy code
<https://github.com/pulumi/pulumi/issues/3592#issuecomment-621343291>
I hit an error:
Copy code
Duration: 1m38s

error: saving update info: blob (key ".pulumi/stacks/minio-test.json -> .pulumi/history/minio-test/minio-test-1645033505756629674.checkpoint.json") (code=NotFound): NoSuchBucket: The specified bucket does not exist
        status code: 404, request id: 16D45541FA8EED2D, host id:
m

miniature-musician-31262

02/16/2022, 6:58 PM
I’m not sure about the region-configuration bit (haven’t used Minio much), but I was able to get this to work with a local Minio instance (fresh Minio install) with the following:
Copy code
$ export AWS_ACCESS_KEY_ID=minioadmin
$ export AWS_SECRET_ACCESS_KEY=minioadmin
$ pulumi logout
$ aws --endpoint-url <http://192.168.104.127:9000> s3 mb <s3://pulumi-bucket>
$ pulumi login "<s3://pulumi-bucket?endpoint=192.168.104.127:9000&disableSSL=true&s3ForcePathStyle=true>"
$ pulumi up
Running on macOS:
v

victorious-wall-1075

02/17/2022, 3:07 AM
thank you for the response.. Let me try this out.
works.. I did a variation of what was in the link + what you mentioned - and it works.. thanks @miniature-musician-31262
m

miniature-musician-31262

02/17/2022, 6:25 AM
Awesome! Glad to hear.
5 Views