EC2-IMPORT-INSTANCE(1)
π EC2-IMPORT-INSTANCE(1) β User Commands, bestie edition π
okay so this is the manual page for ec2-import-instance, and it lives in the User Commands section, which is giving very "utilities that get stuff DONE" energy. buckle up π
β¨ NAME β¨
ec2-import-instance β Create an import instance task to import a virtual machine into EC2
like, it takes your lil VM and yeets it into the cloud π
πΈ SYNOPSIS πΈ
ec2iin ([ec2ii, ec2-import-instance])
ec2iin [GENERAL OPTIONS] [SPECIFIC OPTIONS] disk-image
yes bestie, it answers to three names: ec2iin, ec2ii, and ec2-import-instance. iconic of it honestly π
π«Ά GENERAL NOTES π«Ά
Any command option/parameter may be passed a value of - to indicate that values for that option should be read from stdin.
(translation: hand it a - and it will read the tea from stdin instead π)
π¦ DESCRIPTION π¦
Create an import instance task to import a virtual machine into EC2 using meta-data from the given disk image. The volume size for the imported disk-image will be calculated automatically, unless specified.
so it peeks at your disk image, grabs the meta-data, and spins up an import task. the volume size? auto-calculated unless you say otherwise. no cap β¨
π GENERAL OPTIONS π
-O,--aws-access-key KEYβ AWS Access Key ID. Defaults to the value of theAWS_ACCESS_KEYenvironment variable (if set).-W,--aws-secret-key KEYβ AWS Secret Access Key. Defaults to the value of theAWS_SECRET_KEYenvironment variable (if set).-T,--security-token TOKENβ AWS delegation token. Defaults to the value of theAWS_DELEGATION_TOKENenvironment variable (if set).-K,--private-key KEYβ [DEPRECATED] SpecifyKEYas the private key to use. Defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). Overrides the default.-C,--cert CERTβ [DEPRECATED] SpecifyCERTas the X509 certificate to use. Defaults to the value of theEC2_CERTenvironment variable (if set). Overrides the default.-U,--url URLβ SpecifyURLas the web service URL to use. Defaults to the value ofhttps://ec2.amazonaws.com(us-east-1) or to that of theEC2_URLenvironment variable (if set). Overrides the default.--region REGIONβ SpecifyREGIONas the web service region to use. This option will override the URL specified by the-U URLoption and theEC2_URLenvironment variable. This option defaults to the region specified by theEC2_URLenvironment variable or us-east-1 if this environment variable is not set.-D,--auth-dry-runβ Check if you can perform the requested action rather than actually performing it.-v,--verboseβ Verbose output.-?,--helpβ Display this help.-H,--headersβ Display column headers.--debugβ Display additional debugging information.--show-empty-fieldsβ Indicate empty fields.--hide-tagsβ Do not display tags for tagged resources.--connection-timeout TIMEOUTβ Specify a connection timeoutTIMEOUT(in seconds).--request-timeout TIMEOUTβ Specify a request timeoutTIMEOUT(in seconds).
π SPECIFIC OPTIONS π
-t,--instance-type INSTANCETYPEβ Specifies the type of instance to be launched. Refer to the latest Developer's Guide for valid values. Defaults tom1.smallif not supplied.-g,--group GROUP [--group GROUP...]β Specifies the security group (or groups if specified multiple times) within which the instance(s) should be run. Determines the ingress firewall rules that will be applied to the launched instances. Defaults to the user's default group if not supplied.-f,--format FORMATβ The file format of the disk image. Refer to the latest Developer's Guide for valid values. [REQUIRED]-a,--architecture ARCHITECTUREβ The architecture of the image; (one ofi386orx86_64) Defaults toi386if--instance-typeis not supplied.-p,--platform PLATFORMβ Specifies the platform of the virtual machine. See the Developer's Guide to see the supported values. Defaults to Windows.-b,--bucket BUCKETβ S3 destination bucket name for the manifest. [REQUIRED, unless the option--manifest-urlis specified]-o,--owner-akid OWNERAKIDβ AWS Access Key Id of the owner ofBUCKET.-w,--owner-sak SECRETKEYβ AWS Secret Access Key of the owner ofBUCKET, used to sign the import-manifest URL. This parameter value is not sent to EC2. [REQUIRED]--prefix PREFIXβ Prefix for the manifest-file and disk-image file parts within the S3 bucket. [OPTIONAL]--manifest-url urlβ Optionally, specify the URL for an existing import-manifest file already uploaded to S3 [OPTIONAL]. This option cannot be specified if--buckethas been specified.-s,--volume-size SIZEβ The size of the EBS volume, in GiB (2^30 bytes), that will hold the converted image. If this option is omitted, the required volume size will be computed from the image file. Minimum required boot volume size for EC2 is 4 GiB.-z,--availability-zone ZONEβ Specifies the availability zone for the imported virtual machine. Run theec2-describe-availability-zonescommand for a list of values, and see the latest Developer's Guide for their meanings.-d,--description DESCRIPTIONβ An optional, free-form comment that will be returned verbatim during subsequent calls toec2-describe-conversion-tasks. Maximum length is 240 characters.--user-data USERDATAβ Specifies the user data to be made available to this instance.--user-data-file DATA-FILEβ Specifies the file containing user data to be made available to this instance.--subnet SUBNETβ If you're using Amazon Virtual Private Cloud, this specifies the ID of the subnet you want to launch the instance into.--private-ip-address ip_addressβ If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.--monitorβ Enables monitoring of the specified instance(s).--instance-initiated-shutdown-behavior BEHAVIORβ Indicates what the instance(s) should do if an instance shutdown is issued. The following values are supported:'stop': indicates that the instance should move into the stopped state and remain available to be restarted.'terminate': indicates that the instance should move into the terminated state.
-x,--expires DAYSβ Validity period for the signed S3 URLS that allow EC2 to access the manifest. Defaults to 30 days. [OPTIONAL]--ignore-region-affinityβ Ignore the verification check to determine that the bucket's S3 region matches the EC2 region where the conversion-task is created.--user-threads THREADSβ Maximum number of threads to concurrently upload the file with. Defaults to 20 threads. [OPTIONAL]--dry-runβ Do not create a import task, only validate the disk image.--dont-verify-formatβ Do not verify the file format. This is dangerous and may result in a failed conversion. USE AT YOUR OWN RISK.
bestie. USE AT YOUR OWN RISK is literally right there in the manual. that is the vibes warning. do not come crying to me π
--no-uploadβ Do not upload a disk image to S3. To complete the import task, requires upload usingec2-resume-import.
π SEE ALSO π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
aaaand that's the whole page, no skips, no shortcuts, every single flag accounted for π§β¨
this masterpiece was brought to you by the EC2 API command line tools, version 1.6.14.1, api=2014-05-01 β so like, yes, it's giving vintage, and honestly? vintage ate. periodt πππ¦
π¦ where this page comes from
- ubuntu jammy: ec2-api-tools 1.6.14.1-0ubuntu1
- ubuntu noble: ec2-api-tools 1.6.14.1-0ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms