HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/site-packages/awscli/examples/ec2/describe-scheduled-instance-availability.rst
**To describe an available schedule**

This example describes a schedule that occurs every week on Sunday, starting on the specified date.

Command::

  aws ec2 describe-scheduled-instance-availability --recurrence Frequency=Weekly,Interval=1,OccurrenceDays=[1] --first-slot-start-time-range EarliestTime=2016-01-31T00:00:00Z,LatestTime=2016-01-31T04:00:00Z

Output::

  {
    "ScheduledInstanceAvailabilitySet": [
      {
          "AvailabilityZone": "us-west-2b",
          "TotalScheduledInstanceHours": 1219,
          "PurchaseToken": "eyJ2IjoiMSIsInMiOjEsImMiOi...",
          "MinTermDurationInDays": 366,
          "AvailableInstanceCount": 20,
          "Recurrence": {
              "OccurrenceDaySet": [
                  1
              ],
              "Interval": 1,
              "Frequency": "Weekly",
              "OccurrenceRelativeToEnd": false
          },
          "Platform": "Linux/UNIX",
          "FirstSlotStartTime": "2016-01-31T00:00:00Z",
          "MaxTermDurationInDays": 366,
          "SlotDurationInHours": 23,
          "NetworkPlatform": "EC2-VPC",
          "InstanceType": "c4.large",
          "HourlyPrice": "0.095"
      },
      ...
    ]
  }

To narrow the results, you can add filters that specify the operating system, network, and instance type.

Command:

  --filters Name=platform,Values=Linux/UNIX Name=network-platform,Values=EC2-VPC Name=instance-type,Values=c4.large