ivoronin / packer-plugin-sshkey

Packer plugin used to generate SSH keys.
18 stars 10 forks source link

add temporary_key_pair_name option to usage example #16

Closed alexandrovas closed 1 year ago

alexandrovas commented 2 years ago

Hello!

In order for the packer to clean up the SSH keys after build you need to add the temporary_key_pair_name option to source block. Otherwise, the temporary key will remain in the image.

See Packer SDK sources: https://github.com/hashicorp/packer-plugin-sdk/blob/7e45483efa78142ca694da2667ad69867502c262/multistep/commonsteps/step_cleanup_temp_keys.go#L30