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?