Hello, is there an example of how to use Minio as ...
# general
v
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
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
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
Awesome! Glad to hear.