keypair.ensure_keypair_exists¶
- Hook Path:
runway.cfngin.hooks.keypair.ensure_keypair_exists
Ensure a specific keypair exists within AWS. If the key doesn’t exist, upload it.
Args¶
- keypair: str
Name of the key pair to create
- public_key_path: str | None = None
Path to a public key file to be imported instead of generating a new key. Incompatible with the SSM options, as the private key will not be available for storing.