Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate EC2 AMI from compressed images #10836

Open
thomas-roos opened this issue Dec 17, 2024 · 1 comment
Open

generate EC2 AMI from compressed images #10836

thomas-roos opened this issue Dec 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@thomas-roos
Copy link
Contributor

question on the upload script ... couldn't we e.g. use a compressed file
upload to s3 and inject an uncompression step ?

I'm playing with images with extra space (aka "0"s ) which are e.g. 14GB in
size but would compress to like 800MB with xz.
Doing the upload compressed would save so much time.

I looked at the import commands, but they do only take uncompressed vhd vhdx
and raw.

W/O changing that tooling, would it be possible to upload compressed and
execute an unxz on an s3 object ?

@thomas-roos thomas-roos added the enhancement New feature or request label Dec 17, 2024
@thomas-roos
Copy link
Contributor Author

maybe https://www.cloudtechsimplified.com/unzip-files-s3-bucket-aws-lambda/
might this helps: https://github.com/aws4embeddedlinux/meta-aws-ewaol?tab=readme-ov-file#limitations growing the partition when started?
Other than this I did not find a easy solution. There is something that extracts a zip in S3 (Lambda function) but this needs to be created in the template (https://github.com/aws4embeddedlinux/meta-aws/blob/master/scripts/ec2-ami/vmimport-cfn.yml)
Easiest would be a supported compressed VDI format, but I did not see this supported at first sight as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant