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: Optional[str] = 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.
- ssm_key_id: Optional[str] = None
ID of a KMS key to encrypt the SSM parameter with. If omitted, the default key will be used.
- ssm_parameter_name: Optional[str] = None
Path to an SSM store parameter to receive the generated private key, instead of importing it or storing it locally.