Created
April 3, 2013 09:31
-
-
Save takipone/5299760 to your computer and use it in GitHub Desktop.
execute AWS VM Import sample bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VMDK=<YOUR-VMDK-FILENAME>.vmdk | |
S3_OWNER_ACCESS_KEY=<YOUR_ACCESS_KEY> | |
S3_OWNER_SECRET_KEY=<YOUR_ACCESS_SECRET_KEY> | |
S3_BUCKET_NAME=<YOUR_BUCKET_NAME> | |
ec2-import-instance \ | |
$VMDK \ | |
-t m1.small \ | |
-f VMDK \ | |
-a x86_64 \ | |
--bucket $S3_BUCKET_NAME \ | |
-o $S3_OWNER_ACCESS_KEY \ | |
-w $S3_OWNER_SECRET_KEY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment