title: How to create aws ec2 private-public key pair
body: <p>I'm following <a href="https://jee-appy.blogspot.com/2018/07/create-aws-infrastructure-with-terraform.html" rel="nofollow noreferrer">this</a> guide of creating aws environment. Now after I created my environment I want to ssh to the ec2.</p>
  
  <p>What I need is to create private-public key pair, which I don't know how.</p>
  
  <p>at the beginning of the guide, it tells:</p>
  
  <pre><code>Generate public key from private key
  ssh-keygen -y -f ~/.ssh/pemfile/mumbai.pem
  </code></pre>
  
  <p>But how I create a mumbai.pem file on my host?
  Is there a command to download create this pem, or I need to download it from aws?
  I'm really new with aws, I hope this is not too obvious.</p>