ec2 create an image code example
Example: create image ec2 aws cli
$ aws ec2 run-instances \
--image-id ami-40d28157 \
--count 1 \
--instance-type g2.2xlarge \
--key-name cli_keypair \
--security-group-ids sg-28e2c455
$ aws ec2 run-instances \
--image-id ami-40d28157 \
--count 1 \
--instance-type g2.2xlarge \
--key-name cli_keypair \
--security-group-ids sg-28e2c455