Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to create bucket: The specified bucket does not exist #206

Open
simonjcarr opened this issue Oct 26, 2023 · 2 comments
Open

unable to create bucket: The specified bucket does not exist #206

simonjcarr opened this issue Oct 26, 2023 · 2 comments
Labels
area/docs Improvements or additions to documentation help-wanted We'd love your contributions on this issue kind/enhancement Improvements or new features

Comments

@simonjcarr
Copy link

simonjcarr commented Oct 26, 2023

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:
* [FATAL] unable to create bucket (state-terraform-s3): The specified bucket does not exist.

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).

@simonjcarr simonjcarr added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Oct 26, 2023
@simonjcarr
Copy link
Author

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.

@mikhailshilkov mikhailshilkov added kind/enhancement Improvements or new features area/docs Improvements or additions to documentation help-wanted We'd love your contributions on this issue and removed kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Oct 27, 2023
@AMKamel
Copy link

AMKamel commented Jun 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Improvements or additions to documentation help-wanted We'd love your contributions on this issue kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

3 participants