key_pair
Gets an individual key_pair
resource
Overview
Name | key_pair |
Type | Resource |
Description | key_pair |
Id | awscc.ec2.key_pair |
Fields
Name | Datatype | Description |
---|---|---|
key_name | string | The name of the SSH key pair |
key_type | string | The crypto-system used to generate a key pair. |
key_format | string | The format of the private key |
public_key_material | string | Plain text public key to import |
key_fingerprint | string | A short sequence of bytes used for public key verification |
key_pair_id | string | An AWS generated ID for the key pair |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
key_name,
key_type,
key_format,
public_key_material,
key_fingerprint,
key_pair_id,
tags
FROM awscc.ec2.key_pair
WHERE data__Identifier = '<KeyName>';
Permissions
To operate on the key_pair
resource, the following permissions are required:
Read
ec2:DescribeKeyPairs
Delete
ec2:DeleteKeyPair,
ssm:DeleteParameter,
ec2:DescribeKeyPairs