key_pairs
Retrieves a list of key_pairs
in a region
Overview
Name | key_pairs |
Type | Resource |
Description | key_pairs |
Id | awscc.ec2.key_pairs |
Fields
Name | Datatype | Description |
---|---|---|
key_name | string | The name of the SSH key pair |
region | string | AWS 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