aws.ec2.describe_spot_price_history
Example SQL Queries
SELECT * FROMaws.ec2.describe_spot_price_history;Description
Describes the Spot price history. For more information, see Spot Instance pricing history in the Amazon EC2 User Guide.
When you specify a start and end time, the operation returns the prices of the instance types within that time range. It also returns the last price change before the start time, which is the effective price as of the start time.
Table Definition
| Column Name | Column Data Type |
|---|---|
| availability_zone Input Column The Availability Zone. | VARCHAR |
| dry_run Input Column Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. | BOOLEAN |
| end_time Input Column The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). | TIMESTAMP_S |
| filters Input Column The filters.
| STRUCT( |
Show child fields
| |
| instance_types Input Column Filters the results by the specified instance types. | VARCHAR[] |
Show child fields
| |
| product_descriptions Input Column Filters the results by the specified basic product descriptions. | VARCHAR[] |
Show child fields
| |
| start_time Input Column The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). | TIMESTAMP_S |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| instance_type The instance type. | VARCHAR |
| product_description A general description of the AMI. | VARCHAR |
| spot_price The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price. If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter. | VARCHAR |
| timestamp The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). | TIMESTAMP_S |