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

[BUG] Root object was present, but now absent. #549

Open adieperi opened 9 months ago

adieperi commented 9 months ago

Prerequisites

Description

When I try to create a KMS key, an error appears. The error is :

Screenshot from 2023-11-13 20-42-23

But I inform you that the key has been created on the KMS, and that there are no problems creating the key via mc or the console.

Steps to Reproduce

Create a tf file with :

resource "minio_kms_key" "k" {
  key_id = "mykey"
}

Use this policy :

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "admin:*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "kms:*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::*"
            ]
        }
    ]
}

Run terraform apply

Expected behavior: [What you expect to happen] The key is created on the KMS and the information stored in the state file.

Actual behavior: [What actually happens] The key is created but an error remains

Reproduces how often: [What percentage of the time does it reproduce?] 100%

Versions

Latest tf version Provider version 2.0.1 and 1.20.0 Latest minio and kes version

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.