Skip to main content

key_pairs

Retrieves a list of key_pairs in a region

Overview

Namekey_pairs
TypeResource
Descriptionkey_pairs
Idawscc.ec2.key_pairs

Fields

NameDatatypeDescription
key_namestringThe name of the SSH key pair
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
key_name
FROM awscc.ec2.key_pairs
WHERE region = 'us-east-1'

Permissions

To operate on the key_pairs resource, the following permissions are required:

Create

ec2:CreateKeyPair,
ec2:ImportKeyPair,
ec2:CreateTags,
ssm:PutParameter

List

ec2:DescribeKeyPairs