Allright, for the record.
This was kind of easy but time consuming depending on your connection.
- Install the FreePBX distro on a VirtualBox VM. I have choosen a .vmdk disk dynamically allocated.
- Export it via File > Export virtual appliance. Choose OVA 2.
- Follow https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html (if you are on windows, you probably have to install the AWS cli stuff)
Done
Notes:
Make sure SSH is working and the network interface is set to DHCP.
At the end of the Amazon guide, i had to set the full access for EC2 and S3 for the vmimport role. Because it was showing me not enough permissions.