EC2-MODIFY-RESERVED-INSTANCES(1)
π ec2-modify-reserved-instances(1) β the glow-up edit for your Reserved Instances π
okay bestie, sit down, grab a strawberry matcha ππ΅ because we're about to talk about ec2-modify-reserved-instances, aka ec2mri for the girlies who don't have time to type all that. this is a User Commands manual page, section 1, and it's literally the tool that changes up your Reserved Instances. no cap.
β¨ NAME β¨
ec2-modify-reserved-instances β modifies the Availability Zone, instance count, network platform π¦
πΈ SYNOPSIS πΈ
ec2mri ([ec2-modify-reserved-instances])
ec2mri [GENERAL OPTIONS] RESERVED-INSTANCES-ID [RESERVED-INSTANCES-ID
[...]] [--client-token TOKEN] -c TARGET-CONFIGURATION [-c
TARGET-CONFIGURATION [...]]
so yeah, she has a little nickname, she takes a whole squad of Reserved Instance IDs, and she wants at least one -c to know where she's going. π
π GENERAL NOTES π
any command option/parameter can be handed a value of '-' and that means "bestie, read the values for this one off stdin". it's giving "I'll type it later, I promise." π
π DESCRIPTION π
she modifies the Availability Zone, the instance count, the network platform (that's EC2-Classic or EC2-VPC, pick your fighter), or the instance type of your Reserved Instances. iconic.
RESERVED-INSTANCES-IDs are the IDs of the Reserved Instances you wanna modify. and listen β those IDs have to refer to Reserved Instances that are identical, except for Availability Zone, network platform, and instance type. so like, twins. fr fr. π―ββοΈ
π GENERAL OPTIONS π
-O,--aws-access-keyKEY β your AWS Access Key ID. defaults to whateverAWS_ACCESS_KEYis set to in your environment (if it's set at all, bestie).-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.-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'https://ec2.amazonaws.com'(that's us-east-1) 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 is not set. πΊοΈ-D,--auth-dry-runβ check if you can perform the requested action instead of actually performing it. it's the "rehearsal, not the show" option. π-v,--verboseβ verbose output. she talks more. we love her for it.-?,--helpβ display this help. your bestie when you're lost. π«Ά-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).
π₯ SPECIFIC OPTIONS π₯
the ones that make her her β¨
--client-tokenTOKEN β the client token for this request, which makes the call idempotent. a random client token will be generated if this is not provided. so if you don't bring one, she'll make one. resourceful. πββοΈ-c,--target-configurationTARGET-CONFIGURATION β new configuration settings for the Reserved Instances. ngl this is the main character of the whole page.
each configuration is specified by comma-separated, key-value pairs wrapped in double quotes. the key names are zone, count, platform, and instance-type.
zoneandcountare required. no skipping, bestie. π ββοΈplatformis optional if your account supports EC2-VPC; it must be specified if your account supports EC2-Classic.instance-typemust be of the same instance family as the input Reserved Instances, and it defaults to the instance type of the input Reserved Instances when not specified.- refer to the latest Developer's Guide for valid values. π
Example 1 (modifying a Reserved Instance to one configuration) π
ec2mri <RESERVED-INSTANCES-ID> -c "zone=us-east-1a,count=1,platform=EC2-VPC,instance-type=m1.medium"
Example 2 (modifying multiple Reserved Instances to multiple configurations) π
ec2mri <RESERVED-INSTANCES-ID-1> <RESERVED-INSTANCES-ID-2>
-c "zone=us-east-1a,count=1,platform=EC2-VPC,instance-type=m1.medium"
-c "zone=us-east-1b,count=2,platform=EC2-Classic,instance-type=m1.small"
see how she stacks those -cs? one per configuration. slay. π
π¦ SEE ALSO π¦
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
go read the docs, they're giving reference material energy. π
and that's the whole page, bestie!! π this was brought to you by the EC2 API command line tools, version 1.6.14.1, api=2014-0. mwah, go modify something responsibly. πβ¨π«Ά
π¦ 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