hashicorp / packer-plugin-amazon

Packer plugin for Amazon AMI Builder
https://www.packer.io/docs/builders/amazon
Mozilla Public License 2.0
69 stars 104 forks source link

Add support for arm64_mac architecture #487

Closed jaysoffian closed 6 days ago

hashicorp-cla-app[bot] commented 2 weeks ago

CLA assistant check
All committers have signed the CLA.

jaysoffian commented 1 week ago

The approach looks good to me, I left some questions/remarks on the code for now, mostly because the Architecture was not updated for all the builders/post-processors (not sure if they all support it though), but aside from that, the code looks good to me.

As far as the builders go, this PR updates chroot and ebssurrogate which are the only builders where you'd potentially mount an AMI from a different architecture than the host, so they are the only ones that have an architecture configuration item. As far as the other builders:

With respect to post-processors, this plugin has only the import plugin:

The Packer Amazon Import post-processor takes an OVA artifact from various builders and imports it to an AMI available to Amazon Web Services EC2.

Amazon requires EC2 Mac instances to boot from one of their AMIs (or a customized version thereof). I don't think you can start with an arbitrary OVA artifact. So I don't think supporting the two Mac architectures in the import post-processor makes sense.