I see vagrant as a great tool for testing and I am surprised the aws plugin (here https://github.com/mitchellh/vagrant-aws but which seems deprecated) is here to instanciate ec2 and not copy same configuration as ec2 on a local vm.
I would like to reproduce ec2 on local vm by using the ami (amazon linux 2 and debian11) provided by aws but in vagrant box formats.
There is a iso file that can be downloaded here : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-2-virtual-machine.html
I have also found the debian 11 amazon image here in tar.xz format https://cloud.debian.org/images/cloud/bullseye/20220503-998/
I also have found how to Export a VM directly from an Amazon Machine Image (AMI) here : https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html
I would like to use these images with vagrant, but i have no clue of how to write the Vagrantfile to do so...could you help me? Thank you