EC2-REGISTER(1)
π EC2-REGISTER π
okay bestie, pull up a chair, we're doing ec2-register from the EC2 API command line tools β that's the ec2-register(1) manual page, and yes it's a whole thing but I got you π«Ά
β¨ NAME β¨
ec2-register β register an image, no cap πΈ
π SYNOPSIS π
ec2reg ([ec2-register])
ec2reg [GENERAL OPTIONS] [MANIFEST] [SPECIFIC OPTIONS]
π GENERAL NOTES π
okay so here's a lil cheat code that applies to literally every single option and parameter on this page: you can pass it a value of - and that means read the value from stdin instead. that's it, that's the note. iconic. π
π¦ DESCRIPTION π¦
You register an Amazon Machine Image β an AMI, which is the whole vibe β so it can be used inside Amazon EC2. that's the entire job. main character energy fr fr β¨
π GENERAL OPTIONS π
-O,--aws-access-key KEYβ your AWS Access Key ID. defaults to whatever theAWS_ACCESS_KEYenvironment variable says (if it's set, bestie).-W,--aws-secret-key KEYβ your AWS Secret Access Key. defaults to theAWS_SECRET_KEYenvironment variable (if set).-T,--security-token TOKENβ the AWS delegation token. defaults to theAWS_DELEGATION_TOKENenvironment variable (if set).-K,--private-key KEYβ [DEPRECATED] useKEYas the private key. defaults to theEC2_PRIVATE_KEYenvironment variable (if set). overrides the default. (yes it's deprecated, use at your own risk bestie π)-C,--cert CERTβ [DEPRECATED] useCERTas the X509 certificate. defaults to theEC2_CERTenvironment variable (if set). overrides the default. (also deprecated π)-U,--url URLβ useURLas the web service URL. defaults tohttps://ec2.amazonaws.com(that's us-east-1) or to whateverEC2_URLis set to (if set). overrides the default.--region REGIONβ useREGIONas the web service region. this one overrides the URL from the-U URLoption and theEC2_URLenvironment variable. it defaults to the region from theEC2_URLenvironment variable, orus-east-1if that variable isn't set.-D,--auth-dry-runβ vibe check only: see whether you could do the thing instead of actually doing the thing.-v,--verboseβ verbose output, so you get the tea β-?,--helpβ display this help.-H,--headersβ display column headers.--debugβ display additional debugging information.--show-empty-fieldsβ indicate empty fields.--hide-tagsβ don't display tags for tagged resources.--connection-timeout TIMEOUTβ set a connection timeoutTIMEOUT(in seconds).--request-timeout TIMEOUTβ set a request timeoutTIMEOUT(in seconds).
π₯ SPECIFIC OPTIONS π₯
-a,--architecture ARCHITECTUREβ the architecture of the image; eitheri386orx86_64. if you don't specify,i386gets used.-b,--block-device-mapping MAPPINGβ defines a block device mapping for the image, in the form<device>=<block-device>, whereblock-devicecan be one of these:noneβ says that a block device that would be exposed at the specified device should be suppressed. for example:/dev/sdb=noneephemeral[0-3]β says the Amazon EC2 ephemeral store (that's the instance local storage) should be exposed at the specified device. for example:/dev/sdc=ephemeral0.[<snapshot-id>][:<size>[:<delete-on-termination>][:<type>[:<iops>]][:encrypted]]β says an Amazon EBS volume, created from the specified Amazon EBS snapshot, should be exposed at the specified device. these are the combos that are supported:<snapshot-id>β the ID of an Amazon EBS snapshot, which has to be owned by the caller. you can leave it out if you specify a<size>, which creates 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 can't be smaller than the size of the snapshot itself.<delete-on-termination>β whether the Amazon EBS volume should be deleted on instance termination. if not specified, this defaults totrueand the volume will be deleted.<type>β the volume type. eitherstandardorio1. defaults to standard.<iops>β the requested number of I/O operations per second that the volume can support.encryptedβ says 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. π
-d,--description DESCRIPTIONβ the description of the image.-n,--name NAMEβ the name of the image, which has to be between 3 and 128 characters long, and may contain letters, numbers and these special characters:( ) . - / _-s,--snapshot SNAPSHOTβ the ID of the Amazon EBS snapshot to be used as the root device.--kernel KERNELβ the ID of the kernel associated with the image.--ramdisk RAMDISKβ the ID of the ramdisk associated with the image.--root-device-name ROOTDEVICENAMEβ the name of the root device, e.g./dev/sda1.--virtualization-type VIRTUALIZATION_TYPEβ set the AMI virtualization type.--sriov SRIOVβ set SR-IOV networking support for the AMI.
π SEE ALSO π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
and that's the whole page bestie, you ate that ππ
this was EC2 API command line tools, version1.6.14.1, api2014-05-01β shoutout to the EC2-REGISTER girlies, mwah πβ¨π
π¦ 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