Terraform 1st day task

Hey Everyone, I am constantly getting error for the 1st day task of creating a key pair. Though through terraform key is being created. Can anyone please help.
The error: ```
‘xfusion-kp’ doesn’t exist or or its type is not ‘rsa’

Try this solution here – it works.

Thanks a bunch!! Worked