Might be left behind after Packer failed due to other reasons and didn't 
clean up.
Was answered on Stack Overflow:
https://stackoverflow.com/questions/67111053/temporary-ssh-key-pairs-left-behind-on-aws-ec2-after-packer-is-done?noredirect=1#comment118635799_67111053

On Thursday, April 15, 2021 at 2:09:01 PM UTC+2 Amedee Van Gasse wrote:

> Packer version: 1.6.6
> My operating system: Ubuntu
>
> On Thursday, April 15, 2021 at 2:07:23 PM UTC+2 Amedee Van Gasse wrote:
>
>> I'm using Packer to create AMIs on AWS EC2.
>> I understand that Packer uses a randomly generated SSH key pair to 
>> connect to an EC2 instance that will be the AMI.
>>
>> Now I have seen in the AWS console, in Key pairs, that there are dozens 
>> of leftover key pairs, all named packer_<some-long-hexadecimal-id>.
>>
>> I know that I can manually delete these keys, but is there a way to tell 
>> Packer to delete the key pair on AWS when it is done?
>>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/9e14cf09-f733-448d-b1b3-7b3ea77bcd08n%40googlegroups.com.

Reply via email to