aws::key-pair

Creates a key pair using the public key provided.

Example

aws::key-pair key-pair-example
    name: "key-pair-example"
    public-key-path: "example-public-key.pub"
end
aws::key-pair key-pair-example
    name: "key-pair-example"
    public-key: ".."
end

Attributes

Attribute Description
name The key name that you want to assign for your key pair. See Amazon EC2 Key Pairs. (Required)
public-key-path The file path that contains the public key needed to generate the key pair. See Importing Your Own Public Key to Amazon EC2.
public-key The public key needed to generate the key pair. See Importing Your Own Public Key to Amazon EC2.

Outputs

Attribute Description
key-finger-print The fingerprint for the key pair.