Closed alexandrovas closed 1 year 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.
temporary_key_pair_name
source
See Packer SDK sources: https://github.com/hashicorp/packer-plugin-sdk/blob/7e45483efa78142ca694da2667ad69867502c262/multistep/commonsteps/step_cleanup_temp_keys.go#L30
Hello!
In order for the packer to clean up the SSH keys after build you need to add the
temporary_key_pair_name
option tosource
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