EC2-CREATE-I...E-EXPORT-TASK(1)
π ec2-create-instance-export-task(1) π
okay bestie, welcome to the User Commands corner of the manual β this one's a lil tool from the EC2 API command line tools crew, and it's literally the "yeet my instance into S3" button. let's get into it π¦
β¨ NAME β¨
ec2-create-instance-export-task β initiate an instance export task to export a running or stopped
yes the sentence ends there, that's not me being lazy, that's the manual being the manual π
β¨ SYNOPSIS β¨
ec2addixt ([ec2addixt, ec2-create-instance-export-task])
ec2addixt [GENERAL OPTIONS] INSTANCE -e TARGET_ENVIRONMENT -f DISK_IMAGE_FORMAT [-c CONTAINER_FORMAT] -b S3_BUCKET [-p S3_PREFIX] [-d DESCRIPTION]
β¨ GENERAL NOTES β¨
- Any command option/parameter may be passed a value of
-to indicate that values for that option should be read from stdin.
no cap, that - trick is giving "don't hardcode ur secrets in shell history" energy and honestly? iconic π«Ά
β¨ DESCRIPTION β¨
Initiate an instance export task to export a running or stopped instance to a file in S3.
The INSTANCE parameter specifies the instance to export.
The instance will be rebooted once, in the same fashion as ec2-create-image.
Temporary AMIs or snapshots of the instance and its attached volumes may be created under your account during the initial phase of the export task. They will be deleted automatically when they are no longer needed for the export task.
bestie the reboot is real, ok? it's one reboot, in the same fashion as ec2-create-image, and then it's done. plan accordingly π
β¨ 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.
deprecated bestie, we're not using it, but it's here so u know it exists π
-C,--cert CERTβ [DEPRECATED] SpecifyCERTas the X509 certificate to use. Defaults to the value of theEC2_CERTenvironment variable (if set). Overrides the default.
also deprecated. also still listed. that's just how it is π
-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 andEC2_URLenvironment variable. This option defaults to the region specified by theEC2_URLenvironment variable orus-east-1if this environment variable is not set.
ok so--regionis the main character here, it overrides both-U URLandEC2_URL. it's giving "I said what I said" π
-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 β¨
-f,--disk-image-format DISK-IMAGE-FORMATβ The file format of the disk image. Refer to the latest Developer's Guide for valid values.[OPTIONAL]-e,--target-environment TARGET-ENVIRONMENTβ The target environment. Refer to the latest Developer's Guide for valid values.[REQUIRED]-c,--container-format CONTAINER-FORMATβ The container format used to combine disk images with metadata. If absent, only the disk image will be exported.[OPTIONAL]-b,--s3-bucket S3-BUCKETβ S3 destination bucket name for the exported file. The target bucket must grantWRITEandREAD_ACLpermissions to thevm-import-export@amazon.comAWS account.[REQUIRED]
β οΈ not me reminding u twice but: that bucket must grantWRITEandREAD_ACLtovm-import-export@amazon.com. no perms, no export. periodt.
-p,--s3-prefix S3-PREFIXβ Initial part of the S3 key (object name) used for the exported file. Maximum length is 1000 bytes of UTF-8.[OPTIONAL]-d,--description DESCRIPTIONβ A free-form comment that will be returned verbatim during subsequent calls toec2-describe-export-tasks. Maximum length is 255 characters.[OPTIONAL]
β¨ SEE ALSO β¨
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
k that's the whole thing bestie, go export ur instance and slay πβ¨ππ¦
EC2 API command line tools 1.6.14.1 api=2014-05 β mwah, ilysm, stay hydrated, and remember: [REQUIRED] means required fr fr π
πΈ
π¦ 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