aminueza / terraform-provider-minio

Terraform provider for managing MinIO S3 buckets and IAM Users.
https://registry.terraform.io/providers/aminueza/minio
GNU Affero General Public License v3.0
243 stars 73 forks source link

terraform providfer does not work if api minio is running via proxy on port 443 #536

Open sor88 opened 1 year ago

sor88 commented 1 year ago

terraform providfer does not work if api minio is running via proxy on port 443.

When I use the proxy address (traefik) as a minio_server I get an error:

│ Error: [FATAL] unable to create bucket (state-terraform-s3): The specified bucket does not exist. │ │ with minio_s3_bucket.state_terraform_s3, │ on buckets.tf line 1, in resource "minio_s3_bucket" "state_terraform_s3": │ 1: resource "minio_s3_bucket" "state_terraform_s3" { │ if you use a direct host specifying port 9000, then it works. I would like to use it in a cluster through a proxy. what to do?

BuJo commented 1 year ago

Mostly this happens, if the proxy does not behave as expected. #99 would help with that. Does it work when you use mc (the minio client) with exactly the same configuration with the exact same network topology?

Also have a look if you're using SSL or not.