Skip to content

systemslab infra pricing

Description Show current EC2 prices, plus recent price shape, for instance types.
Usage systemslab infra pricing [OPTIONS]

Description

The systemslab infra pricing command prints the current on-demand and spot price for EC2 instance types, plus a seven-day median and standard deviation where enough observations exist.

A combination this deployment has never observed a price for is simply absent from the output — never printed as $0.00/hr. median (7d) and stddev (7d) print as - rather than $0.00 when there are too few observations in the seven-day window to compute them (zero for the median, zero or one for the deviation).

This command reads over GraphQL.

Examples

Current prices for two candidate types:

sh
systemslab infra pricing --instance-type m5.large --instance-type m6i.large

Options

OptionDefaultDescription
--instance-type Restrict to these instance types. This flag can be provided multiple times to name more than one. Omit it to show every instance type this deployment has ever priced in --region.
--region The AWS region to price. Defaults to this deployment's configured infrastructure region; the server rejects the request if this deployment has no such configuration and no region was given.
-H, --no-header Do not emit a table header with the column names.
-A, --no-align Switches to unaligned output mode.
-F,
--field-separator
" " Use this separator as the field separator when emitting unaligned output.
-R,
--record-separator
"\n" Use this separator as the record separator for unaligned output.

Common Options

OptionDefaultDescription
--systemslab-url The URL at which to access the systemslab server.
--colorauto Controls when color is used in the output. Possible values are auto, always, and never.
--output-formatlong Output format to use when outputting messages. long will result output designed to be human-readable while short is short output meant to be used within scripts.

Environment Variables

VariableDescription
SYSTEMSLAB_URLSpecify the URL used to contact the SystemsLab server. Equivalent to --systemslab-url.