Open myslak71 opened 6 months ago
Hi @myslak71,
This is likely an AWS plugin problem more than a Packer one here, but may I ask which version of the plugin you're using? We don't bundle plugins anymore with Packer, so chances are you are using an old version of the plugin, hence why this happens.
I won't rule out the possibility that it's a bug just yet, but could you double-check that before we delve more into the details of this?
Thanks!
I haven't specified
packer {
required_plugins {
amazon = {
source = "github.com/hashicorp/amazon"
...
}
}
explicitly in my code. How can I check running version then?
Hey @myslak71,
required_plugins
are a nice to have in order to document/constrain the plugins required and the versions, but they're not necessarily your best weapon in order to figure out which plugins are effectively loaded.
For this I suggest looking at the verbose logs (enabled with the PACKER_LOG=1
environment variable), there you'll be able to see the plugin binary being loaded, and if you must know the version of that plugin (it may not be apparent in the binary's name), I suggest calling the describe
command on it: packer-plugin-amazon describe
.
This should print a JSON description of the plugin, including its version.
Community Note
Overview of the Issue
temporary_key_pair_type = ed25519
isn't respected when using SSM - pair key created by packer still uses RSA resulting in failed connection. Checking AWS Console shows that created pair uses RSA indeed. When packer version was changed to 1.8.0 it worked like charm. Found an old issue: https://github.com/hashicorp/packer/issues/11686 stating that's resolved - seems we're experiencing regression here.Reproduction Steps
Steps to reproduce this issue
Packer version
1.10.3
Simplified Packer Template
Operating system and Environment details
Ubuntu 22.04 64 bit
Log Fragments and crash.log files