[Enhancement]: AWS_KEY_PAIR include public key during importing #32502
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ec2
Issues and PRs that pertain to the ec2 service.
Description
There is an issue while importing ec2 key pair that imports doesn't include public key. When I was looking for solution I found this issue where people mentioned lack of possibility to get public part through AWS API. I have found in AWS docs there is a way to get it:
aws ec2 describe-key-pairs --key-names key-pair-name --include-public-key
or with
boto3
Affected Resource(s) and/or Data Source(s)
aws_key_pair
Potential Terraform Configuration
N/A
References
#1092
https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-key-pairs.html
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2/client/describe_key_pairs.html#
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: