scopely-devops / skew

Apache License 2.0
243 stars 70 forks source link

Fix ec2 key pair resource #153

Closed tobHai closed 4 years ago

tobHai commented 4 years ago

I stumbled across a small mistake when fetching ARNs for EC2 keypairs, the correct ARN pattern is : arn:aws:ec2:REGION:ACCOUNT-ID:key-pair/KEY-ID instead of arn:aws:ec2:REGION:ACCOUNT-ID:key-pair/KEY-NAME. This PR fixes this issue by using the KeyPairId returned by describe_key_pairs.

avram commented 4 years ago

Thanks!