Import of Ressources failing with tf-module providing input

Hi Team,

I’m trying to import existing aws-kms-keys into a tf-state. We are using the aws-providers default-tags-function to tag the resources.
The tags are generated via separate tf-modul:

provider "aws" {
  default_tags {
    tags = merge(
      module.tagging.tagA,
      module.tagging.tagB,
      module.tagging.tagC,
    }
  }
}

The import is failing with:

The configuration for provider[“Terraform Registry”] depends on values that cannot be determined until apply.

When putting the tags directly/statiticky into the providers.tf-file, the import works as expecetd.

Any ideas on that?

Look similiar to this one:

Thank you!