Unable to set google_kms_crypto_key_version to primary

I am trying to create a version of a deleted google_kms_crypto_key and able to do so but not able make the new version as primary. Can anyone suggest if there is any option to make the key version primary. Throught terraform able to set the version to enabled but cannot make it primary. So my resource creation is failing as the key is showing deleted.