cloudquery / cq-provider-aws

CloudQuery Provider for AWS
https://cloudquery.io
Mozilla Public License 2.0
29 stars 40 forks source link

Support EC2 Key Pairs #1403

Closed jhudson10x closed 2 years ago

jhudson10x commented 2 years ago

Describe the resource.

https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#EC2.DescribeKeyPairs

DescribeKeyPairs API operation for Amazon Elastic Compute Cloud.

Describes the specified key pairs or all of your key pairs.

Use Case

Audit EC2 key pairs for deny-listed fingerprints.

Additional context

It might be good to have the aws_ec2_instances table also include the fingerprint. We can join on the key_name though. It might also be good to pull the public key material if there's a use case for it.

erezrokah commented 2 years ago

Fixed by https://github.com/cloudquery/cloudquery/pull/1325