EC2-BUNDLE-INSTANCE(1)
π EC2-BUNDLE-INSTANCE π
okay bestie, gather round, because this is the manual page for ec2-bundle-instance β one of the EC2 API command line tools (version 1.6.14.1, api=2014-05-01, iykyk) β¨
β¨ NAME β¨
ec2-bundle-instance β bundle a running instance on next reboot π
πΈ SYNOPSIS πΈ
ec2bundle ([ec2-bundle-instance])
ec2bundle [GENERAL OPTIONS] -b BUCKET -p PREFIX -o OWNER-AKID (-c
POLICY | -w OWNER-ACCESS-KEY) [OPTIONS] INSTANCE
π GENERAL NOTES π
okay so this is the little rule that applies EVERYWHERE, no cap: any command option or parameter can be handed a value of -, and that means "bestie, read the values for that option from stdin" π«Ά
π¦ DESCRIPTION π¦
So here's the vibe: you bundle a running instance into an AMI upon next reboot, and the image components get stored in S3. And the way it does that? It stores items in S3 on the user's behalf using a signed S3 upload policy. iconic behavior honestly β¨
Now, that upload policy and its corresponding signature β you can either pass them in as parameters, or let them be generated automatically if the Secret Access Key for the owner of the S3 bucket is available. The generated policy is valid for 24 hours by default. But also, if you hand over a policy and a Secret Access Key, then the provided policy is what gets signed and used. periodt π
If a policy does get generated, use --verbose to display the policy π (yes, look at it, it's right there).
And the bucket situation: the S3 bucket is created if it does not exist, and the user ec2-bundled-images@amazon.com is granted read permissions on the entire bucket. If you wanna skip those checks, use --no-bucket-setup π§
π GENERAL OPTIONS π
-O,--aws-access-keyKEY β the AWS Access Key ID. Defaults to the value of theAWS_ACCESS_KEYenvironment variable (if set).-W,--aws-secret-keyKEY β the AWS Secret Access Key. Defaults to the value of theAWS_SECRET_KEYenvironment variable (if set).-T,--security-tokenTOKEN β the AWS delegation token. Defaults to the value of theAWS_DELEGATION_TOKENenvironment variable (if set).-K,--private-keyKEY β [DEPRECATED] specify KEY as the private key to use. Defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). Overrides the default.-C,--certCERT β [DEPRECATED] specify CERT as the X509 certificate to use. Defaults to the value of theEC2_CERTenvironment variable (if set). Overrides the default.-U,--urlURL β specify URL as 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.--regionREGION β specify REGION as 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, orus-east-1if that environment variable is not set.-D,--auth-dry-runβ check if you can perform the requested action rather than actually performing it. (window shopping, but for permissions π )-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-timeoutTIMEOUT β specify a connection timeout TIMEOUT (in seconds).--request-timeoutTIMEOUT β specify a request timeout TIMEOUT (in seconds).-b,--bucketBUCKET β the S3 bucket in which to place the image components. Bucket name should be in lower case (lowercase only, bestie, it's not a suggestion πΈ).-p,--prefixPREFIX β prefix for the image component names being stored in S3.-o,--owner-akidOWNER-ACCESS-KEY β AWS Access Key Id of the owner of BUCKET.-w,--owner-sakOWNER-SECRET-KEY β AWS Secret Access Key of the owner of BUCKET, used to sign the upload policy. This parameter is required to generate a policy if--policyis not given, and to sign a given or generated policy if--policy-signatureis not given. This parameter value is not sent to EC2 π (your secrets stay yours, periodt).-c,--policyPOLICY β plaintext or base-64 encoded upload policy for S3, allowing EC2 to place items into S3 on the user's behalf. If this is not given,--owner-sakis required and an upload policy is generated and signed automatically. For more information on upload policies see the Amazon S3 Developer Guide.-s,--policy-signaturePOLICY-SIG β base-64 encoded signature for the S3 upload policy. If--policyis given but this is omitted,--owner-sakis required and the policy is signed using that value.-x,--expiresHOURS β validity period for a generated upload policy, in hours. Defaults to24.-B,--no-bucket-setupβ if the S3 bucket doesn't exist, don't create it. If the permissions aren't correct, don't attempt to fix them. (hands off, it's giving "I said what I said" π)--locationβ the location of the destination Amazon S3 bucket.
π SEE ALSO π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
and that's the whole page, bestie β this was the EC2 API command line tools, version 1.6.14.1, api=2014-05-01, manual section 1, for EC2-BUNDLE-INSTANCE π go bundle something iconic, and remember: - means stdin, lowercase your buckets, and never leak your sak π₯π
π¦ 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