  </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Sets up an EC2 keypair and saves it to the specified location. If the
key already exists locally, the permissions are modified accordingly. If
the key exists remotely but not locally, the key is deleted and a new one
created with its name.

Args:
    key_fn (str): Path to where the key is to be saved.
</pre> 
</div>
</div>
<a id="a1d659765b4b619761b06056e97d34f62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d659765b4b6