EC2-CREATE-IMAGE(1)
π EC2-CREATE-IMAGE π
okay so bestie, welcome to the manual page for ec2-create-image, which lives in section 1 of the manual β that's the User Commands section, aka the place where all the "you type this into a shell" girlies hang out. Pull up a chair, grab a boba, we're registering AMIs together and it's gonna be iconic. β¨
πΈ NAME πΈ
ec2-create-image β Register an AMI manifest for use with EC2
no cap, that's the whole job description.
π SYNOPSIS π
ec2cim ([ec2-create-image])
ec2cim [GENERAL OPTIONS] INSTANCE
the way that ec2cim is just out here being the short little nickname... we love a low-effort queen. π
π§ GENERAL NOTES π§
any command option or parameter can be handed a value of -, which is the secret code for "bestie, read the values for that option from stdin instead". yes, literally any of them. fr fr.
π DESCRIPTION π
Creates an Amazon EBS-backed AMI from a running or stopped instance. that's it, that's the whole vibe. your instance becomes an image. main character energy, honestly. π₯
β¨ GENERAL OPTIONS β¨
these are the universal settings, the ones that apply no matter what you're doing. think of them as the accessories that go with every outfit. π«Ά
-O,--aws-access-keyKEY β your AWS Access Key ID. defaults to whatever theAWS_ACCESS_KEYenvironment variable is set to (if it's set, that is).-W,--aws-secret-keyKEY β your AWS Secret Access Key. defaults to the value of theAWS_SECRET_KEYenvironment variable (if set).-T,--security-tokenTOKEN β your 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. (deprecated bestie, we're moving on, but she's still here.)-C,--certCERT β [DEPRECATED] β οΈ specify CERT as the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set). overrides the default. (also deprecated, also still invited to the party.)-U,--urlURL β specify URL as the web service URL to use. defaults to'https://ec2.amazonaws.com'(that's us-east-1, the OG) or to the value 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. it defaults to the region specified by theEC2_URLenvironment variable, orus-east-1if that environment variable isn't set. she said "I'm in charge now." π-D,--auth-dry-runβ check if you can perform the requested action instead of actually performing it. window shopping, but for permissions. ποΈ-v,--verboseβ verbose output. she talks a lot. we listen. π¬-?,--helpβ display this help.-H,--headersβ display column headers.--debugβ display additional debugging information. for when you need the tea. π΅--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).
π¦ SPECIFIC OPTIONS π¦
these are the ones that are specifically about making your image, your image. bespoke. custom. β¨
-n,--nameNAME β the name of the image. give her a name, she deserves one. π-d,--descriptionDESCRIPTION β the description of the image.--no-rebootβ if specified, the instance will not be rebooted during the bundle process. (yes, without this flag, she will get rebooted. plan accordingly. π)-b,--block-device-mappingMAPPING β defines a block device mapping for the image, in the form'<device>=<block-device>', where'block-device'can be one of the following:'none': indicates that a block device that would be exposed at the specified device should be suppressed. for example:'/dev/sdb=none''ephemeral[0-3]': indicates that the Amazon EC2 ephemeral store (instance local storage) should be exposed at the specified device. for example:'/dev/sdc=ephemeral0'.'[<snapshot-id>][:<size>[:<delete-on-termination>][:<type>[:<iops>]][:encrypted]]': indicates that an Amazon EBS volume, created from the specified Amazon EBS snapshot, should be exposed at the specified device. the following combinations are supported:'<snapshot-id>': the ID of an Amazon EBS snapshot, which must be owned by the caller. may be left out if a<size>is specified, creating an empty Amazon EBS volume of the specified size.'<size>': the size (GiBs) of the Amazon EBS volume to be created. if a snapshot was specified, this may not be smaller than the size of the snapshot itself.'<delete-on-termination>': indicates whether the Amazon EBS volume should be deleted on instance termination. if not specified, this will default to'true'and the volume will be deleted.'<type>': specifies the volume type. this can be either'standard'or'io1'. defaults to standard.'<iops>': the requested number of I/O operations per second that the volume can support.'encrypted': indicates that the volume should be encrypted.
for example:
'/dev/sdb=snap-7eb96d16'
'/dev/sdc=snap-7eb96d16:80:false'
'/dev/sdc=snap-7eb96d16:80:false:io1:100'
'/dev/sdd=:120'
'/dev/sdd=:120:encrypted'
See the latest Developer's Guide for further information. π
π SEE ALSO π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
ok that's the whole page bestie, you ate that. go forth and register your AMI. π
and for the lil' sign-off moment: this whole thing comes to you from the EC2 API command line tools, version 1.6.14.1, api=2014-05-01 β and it's the manual for EC2-CREATE-IMAGE(1). vintage but still slaying. π«Άβ¨
π¦ 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