Terraform elastic cache as Valkey | Not supported?

aws_elasticache_replication_group → engine using as valkey getting below error

Error: expected engine to be one of [“redis”], got valkey │ │ with module.elastic_cache.aws_elasticache_replication_group.defa

Valkey support for Elasticache resources were added to v5.73.0 of the Terraform AWS Provider. You may want to check your provider version and make sure you are using this version or newer.

P.S. In the future, It would be really helpful if you could provide more information such as Terraform + provider versions as well as a sample Terraform configuration. Alternatively, you can also open a GitHub issue which gives you a template to fill in all required information for further investigation.