EC2-REQUEST-SPOT-INSTANCES(1)
π EC2-REQUEST-SPOT-INSTANCES π
okay bestie, listen β this is the manual page for ec2-request-spot-instances(1), living in the User Commands section. it's a whole vibe, it's a whole tool, and we're gonna go through it together. grab a snack. π
π NAME π
ec2-request-spot-instances β create a spot instance request. that's it. that's the whole job. iconic. β¨
πΈ SYNOPSIS πΈ
ec2rsi ([ec2-request-spot-instances])
ec2rsi [GENERAL OPTIONS] AMI [SPECIFIC OPTIONS]
yes she has a nickname. ec2rsi. we love a short king. π«Ά
π¦ GENERAL NOTES π¦
literally any command option or parameter can be handed a value of -, and that means "bestie, read the values for this option from stdin instead." very demure, very flexible. π
π DESCRIPTION π
Creates a spot instance request. short, sweet, and it means business. π₯
β¨ GENERAL OPTIONS β¨
-O,--aws-access-keyKEY β your AWS Access Key ID. if you don't pass it, it defaults to whateverAWS_ACCESS_KEYis set to in your environment (if it's set at all).-W,--aws-secret-keyKEY β your AWS Secret Access Key. defaults to theAWS_SECRET_KEYenvironment variable (if set).-T,--security-tokenTOKEN β the AWS delegation token. defaults to theAWS_DELEGATION_TOKENenvironment variable (if set).-K,--private-keyKEY β [DEPRECATED] specifyKEYas the private key to use. defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). overrides the default. π heads up, deprecated, so don't build your whole personality around it.-C,--certCERT β [DEPRECATED] specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set). overrides the default. also deprecated. we're just being honest here. π-U,--urlURL β specifyURLas the web service URL to use. defaults to'https://ec2.amazonaws.com'(that's us-east-1) or to the value of theEC2_URLenvironment variable (if set). overrides the default.--regionREGION β specifyREGIONas 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 does not play about precedence. π-D,--auth-dry-runβ check whether you can perform the requested action instead of actually performing it. a little test run, a little vibe check. β-v,--verboseβ verbose output. give me all the details, I want the whole story.-?,--helpβ display this help. your bestie when you're lost.-H,--headersβ display column headers.--debugβ display additional debugging information. for when you need to know everything. π--show-empty-fieldsβ indicate empty fields.--hide-tagsβ do not display tags for tagged resources.--connection-timeoutTIMEOUT β specify a connection timeoutTIMEOUT, in seconds.--request-timeoutTIMEOUT β specify a request timeoutTIMEOUT, in seconds.
π SPECIFIC OPTIONS π
-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': says that a block device that would otherwise be exposed at the specified device should be suppressed. for example:'/dev/sdb=none''ephemeral[0-3]': says 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]]': says 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, which creates an empty Amazon EBS volume of the specified size.'<size>': the size (in 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>': says whether the Amazon EBS volume should be deleted on instance termination. if you don't specify it, this defaults 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.
-d,--user-dataDATA β specifies the user data to be made available to the instance(s) in this reservation.-f,--user-data-fileDATA-FILE β specifies the file containing user data to be made available to the instance(s) in this reservation.-g,--groupGROUP[--group GROUP...]β specifies the security group (or groups, if you specify it multiple times) within which the instance(s) should be run. this determines the ingress firewall rules that get applied to the launched instances. defaults to the user's default group if you don't supply it.-k,--keyKEY-PAIR β specifies the key pair to use when launching the instance(s).-m,--monitorβ enables monitoring of the specified instance(s).-n,--instance-countCOUNT β the maximum number of spot instances to launch.-p,--pricePRICE β specifies the maximum hourly price for any spot instance launched to fulfill the request.-r,--typeREQUEST β specifies the spot instance request type; either'one-time'or'persistent'. pick your fighter. π₯-s,--subnetSUBNET β the ID of the Amazon VPC subnet in which to launch the instance(s).-t,--instance-typeTYPE β specifies the type of instance to be launched. refer to the latest Developer's Guide for valid values.-z,--availability-zoneZONE β specifies the availability zone to launch the instance(s) in. run the'ec2-describe-availability-zones'command for a list of values, and see the latest Developer's Guide for their meanings.--addressingADDRESSING β specifies the addressing type to use for the instance(s). refer to the latest Developer's Guide for valid values.--availability-zone-groupGROUP β specifies the spot instance availability zone group.--placement-groupGROUP_NAME β specifies the placement group into which the instances should be launched.--kernelKERNEL β specifies the ID of the kernel to launch the instance(s) with.-a,--network-attachmentNETWORKATTACHMENT β specifies the network attachment for the instance to launch. the format of the attachment definition is as follows:
<nic>:<dev index>[:<subnet>[:<description>[:<priv IP>[:<SGs>[:<DOT>
[:SIP count[:<SIPs>]]]]]]]
where:
SGsis a comma separated list of security group IDs.DOTis either true or false, denoting whether to delete the interface on termination.SIP countis the count of secondary private IP addresses.SIPsis a list of secondary private IP addresses.
specify only one of SIP count or SIPs. don't be greedy bestie. π
--iam-profileARN β specifies the IAM profile to associate with the launched instance(s). IAM profiles enable you to manage permissions for applications running on EC2.--launch-groupGROUP β specifies the spot instance launch group.--ebs-optimizedβ provides dedicated throughput to Amazon EBS and a software stack optimized for EBS I/O. additional usage charges apply when using this option. πΈ your wallet has been warned.--ramdiskRAMDISK β specifies the ID of the ramdisk to launch the instance(s) with.--valid-fromVALIDFROM β the date and time after which the spot instance request will be considered for fulfillment; specified in the format'yyyy-MM-ddTHH:mm:ss'.--valid-untilVALIDUNTIL β the date and time after which the spot instance request will expire and no longer be considered for fulfillment; specified in the format'yyyy-MM-ddTHH:mm:ss'.--secondary-private-ip-addressSECONDARY-PRIVATE-IP-ADDRESS β specifies a secondary private IP address for the network interface of the instance to be launched.--secondary-private-ip-address-countSECONDARY-PRIVATE-ADDRESS-COUNT β specifies a number of secondary private IP addresses to be dynamically assigned to the instance to be launched.--associate-public-ip-addressBOOLEAN β specify whether or not an AWS public IP address should be assigned to theeth0of the instances to be launched. instances launched into a default subnet are assigned a public IP address by default.
π SEE ALSO π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
and that's the whole page, no notes. this little love letter comes to you from the EC2 API command line tools, version 1.6.14.1, api=2014-05-0 β so if you're out here launching spot instances, go off, you absolute legend. π β¨π¦ 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