packer: pin the version of the amazon plugin to 1.2.2

Version 1.2.3 made changes to how the plugin handles auto-selection of a
subnet when it's not specified, see

f1ec287c77

Sadly, the new algorithm selects us-east-1e for us that doesn't support
the machine types we use (c6*.large) which causes the build to fail.
I reported it here:
https://github.com/hashicorp/packer-plugin-amazon/issues/368

One workaround might be to pin a working subnet, but that's apparently also
broken in 1.2.3, see
https://github.com/hashicorp/packer-plugin-amazon/issues/367

Therefore, I decided to pin the plugin to 1.2.2 for now, and see what's
the recommended approach from terraform guys.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2023-04-20 11:15:20 +02:00 committed by Ondřej Budai
parent 05eb1a95b6
commit edf4f7e879

View file

@ -1,7 +1,7 @@
packer {
required_plugins {
amazon = {
version = ">= 1.1.1"
version = "= 1.2.2"
source = "github.com/hashicorp/amazon"
}
}