aws ec2 create-reserved-instances-listing
Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To list a Reserved Instance in the Reserved Instance Marketplace
The following create-reserved-instances-listing example creates a listing for the specified Reserved Instance in the Reserved Instance Marketplace.
aws ec2 create-reserved-instances-listing --reserved-instances-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --instance-count 3 --price-schedules CurrencyCode=USD,Price=25.50 --client-token a1b2c3d4-5678-90ab-cdef-EXAMPLE22222Identify--reserved-instances-idThe ID of the active Standard Reserved Instance.--instance-countThe number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace.--price-schedulesA list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.--client-tokenUnique, case-sensitive identifier you provide to ensure idempotency of your listings.Its output, shortened
{
"ReservedInstancesListings": [
{
"ClientToken": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"CreateDate": "2024-05-14T18:12:30.000Z",
"InstanceCounts": [
{
"InstanceCount": 3,
"State": "available"
},
{
"InstanceCount": 0,
"State": "sold"
},
{
"InstanceCount": 0,
"State": "cancelled"
},
{
"InstanceCount": 0,
"State": "pending"
}
],
"PriceSchedules": [
{
"Active": true,
"CurrencyCode": "USD",
"Price": 25.5,
"Term": 11
}
… 10 more linesFor more information, see Sell Reserved Instances for Amazon EC2 in the Reserved Instance Marketplace in the Amazon EC2 User Guide.
Options
--client-tokenUnique, case-sensitive identifier you provide to ensure idempotency of your listings.--instance-countThe number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace.--price-schedulesA list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.--reserved-instances-idThe ID of the active Standard Reserved Instance.