First - create SSH key in your home dir:
ssh-keygen
resource "aws_key_pair" "mtc_auth" { key_name = "mtckey" public_key = file("~/.ssh/id_rsa.pub") }