Create the Key Pair resource with Terraform

First - create SSH key in your home dir:

ssh-keygen
Next - add the following into the main.tf:
resource "aws_key_pair" "mtc_auth" {
  key_name = "mtckey"
  public_key = file("~/.ssh/id_rsa.pub")
}
Run plan and apply