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(

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, the import works as expecetd.

Any ideas on that?

Look similiar to this one:

Thank you!