Open steschuser opened 5 months ago
any love?
I tried to reproduce your issue on my setup and didn't have any issue.
My code:
resource "minio_s3_bucket" "test" {
bucket = "test"
}
Command I run: terraform import -var-file="dev.tfvars" 'minio_s3_bucket.test' 'test'
(quoting is important when running terraform imports to avoid unexpected behaviour)
Also, your error seems to refer to a S3 bucket policy, not a bucket:
│ Error: error importing Minio S3 bucket policy: The specified bucket does not exist.
Description
Trying to import an existing bucket fails
Steps to Reproduce
create a bucket outside of terraform
generate minimal terraform config
try to import
Expected behavior: a successfull import :)
Actual behavior: Throws "bucket does not exist"
Reproduces how often: 100%
Versions
Terraform v1.8.4 on linux_amd64
MinIO VERSION 2024-04-18T19:09:19Z