Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > dd7204292d310452063d09b5de9c13b7 > files > 768

aws-cli-docs-1.16.163-1.mga7.noarch.rpm

**To describe your Reserved Instances**

This example command describes the Reserved Instances that you own.

Command::

  aws ec2 describe-reserved-instances

Output::

  {
    "ReservedInstances": [
        {
            "ReservedInstancesId": "b847fa93-e282-4f55-b59a-1342fexample",
            "OfferingType": "No Upfront",
            "AvailabilityZone": "us-west-1c",
            "End": "2016-08-14T21:34:34.000Z",
            "ProductDescription": "Linux/UNIX",
            "UsagePrice": 0.00,
            "RecurringCharges": [
                {
                    "Amount": 0.104,
                    "Frequency": "Hourly"
                }
            ],
            "Start": "2015-08-15T21:34:35.086Z",
            "State": "active",
            "FixedPrice": 0.0,
            "CurrencyCode": "USD",
            "Duration": 31536000,
            "InstanceTenancy": "default",
            "InstanceType": "m3.medium",
            "InstanceCount": 2
        },
        ...
    ]
  }

**To describe your Reserved Instances using filters**

This example filters the response to include only three-year, t2.micro Linux/UNIX Reserved Instances in us-west-1c.

Command::
    
    aws ec2 describe-reserved-instances --filters Name=duration,Values=94608000 Name=instance-type,Values=t2.micro Name=product-description,Values=Linux/UNIX Name=availability-zone,Values=us-east-1e

Output::

  {
      "ReservedInstances": [
          {
              "ReservedInstancesId": "f127bd27-edb7-44c9-a0eb-0d7e09259af0",
              "OfferingType": "All Upfront",
              "AvailabilityZone": "us-east-1e",
              "End": "2018-03-26T21:34:34.000Z",
              "ProductDescription": "Linux/UNIX",
              "UsagePrice": 0.00,
              "RecurringCharges": [],
              "Start": "2015-03-27T21:34:35.848Z",
              "State": "active",
              "FixedPrice": 151.0,
              "CurrencyCode": "USD",
              "Duration": 94608000,
              "InstanceTenancy": "default",
              "InstanceType": "t2.micro",
              "InstanceCount": 1
          }
      ]
  }

For more information, see `Using Amazon EC2 Instances`_ in the *AWS Command Line Interface User Guide*.

.. _`Using Amazon EC2 Instances`: http://docs.aws.amazon.com/cli/latest/userguide/cli-ec2-launch.html