Open simonjcarr opened 8 months ago
OK, I have solved the issue, by looking at one of your other open issues in regards to SSL.
I set the following config item pulumi config set minio:minioSsl true
it works.
My Minio cluster is behind a Reverse Proxy which terminates the SSL with a Lets Encrypt Certificate.
Could you update the documentation to reflect this and perhaps include the setting in your Install and config section. By default people should be expected to be using SSL anyway.
OK, I have solved the issue, by looking at one of your other open issues in regards to SSL.
I set the following config item
pulumi config set minio:minioSsl true
it works.My Minio cluster is behind a Reverse Proxy which terminates the SSL with a Lets Encrypt Certificate.
Could you update the documentation to reflect this and perhaps include the setting in your Install and config section. By default people should be expected to be using SSL anyway.
This solved the following error with me
error: Preview failed: importing minio-next-testing.mydomain.info: error importing Minio S3 bucket policy: Bucket name cannot be empty
What happened?
When I try to create a new bucket on my self hosted minio cluster I get the error
[FATAL] unable to create bucket (state-terraform-s3): The specified bucket does not exist.
Example
import pulumi import pulumi_minio as minio
state_terraform_s3 = minio.S3Bucket("stateTerraformS3", acl="public", bucket="state-terraform-s3") pulumi.export("minioId", state_terraform_s3.id) pulumi.export("minioUrl", state_terraform_s3.bucket_domain_name)
Output of
pulumi about
Diagnostics: pulumi:pulumi:Stack (pulumis3-dev): warning: provider config warning: use minio_password instead warning: provider config warning: use minio_user instead error: update failed
minio:index:S3Bucket (stateTerraformS3): error: 1 error occurred:
Resources: 1 unchanged
Duration: 2s
Additional context
I have set the following pulumi config items pulumi config set minio:minioAccessKey xxxxxxx --secret pulumi config set minio:minioSecretKey xxxxxxxx --secret pulumi config set minio:minioServer api.s3.lab.soxprox.com
The access key and secret key are for a username/password I created in the Minio Web GUI. I am using these same credentials to connection Pulumi to my Minio Cluster.
I have also tried minio:minio_user and minio:minio_password as per the error message shown but I get the same error
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).