head.daveops.net

Snippets for yer computer needs

EC2 AMIs

Get CentOS AMIs

aws --region us-east-1 ec2 describe-images --owners aws-marketplace --filters Name=product-code,Values=aw0evgkw8e5c1q413zgy5pjce

https://cloud.centos.org/centos/7/images/ https://wiki.centos.org/Cloud/AWS

Creating AMIs

VM Import

# Import an image
aws ec2 import-image --description "example-ami" --disk-containers file://ami_containers.json

# See progress of image imports
aws ec2 describe-import-image-tasks

https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-troubleshooting.html https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html