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
233 stars 69 forks source link

Inconsistent number of remote target and bucket replication rules #562

Open mahsoud opened 4 months ago

mahsoud commented 4 months ago

Description

I had a couple of replication rules declared manually via minio client. Later the two rules were removed two new rules were created.

Now once I try to import the rules into terraform configuration I face error:

Error: inconsistent number of remote target and bucket replication rules (4 != 2)

Interestingly enough "mc replicate ls" returns only 2 rules.

I would appreciate any advice or directions on how to debug, or completely clear the removed rules from the minio instance.

mahsoud commented 4 months ago

log from terraform import command: https://gist.github.com/mahsoud/c819e271f554087a8c1b5d5c9ff017ce