Issue during automated creation of Key Alias in KMS

Hi all

I want to ‘alias’ the keys created thru aws_kms, as following:

resource "aws_kms_key" "s3" {
  description             = "Key dedicated to encryption for S3"
  deletion_window_in_days = 7
  policy                  = data.template_file.iam-kms-s3.template
}
resource "aws_kms_alias" "s3" {
  name          = "alias/...s3-key..."
 target_key_id = aws_kms_key.s3.key_id
}

It seems conform to the documentation and is ran on MacOS. But, the alias is not created : not shown on the KMS console and not able to reference it in the next modules

An idea what i miss ?

Thanks in advance

Fred