Default number of capacity units for all instance types.
number
1
no
availability_zones_names_list
The list with AZs names
list(string)
yes
product_description_list
The product description list for the Spot price (Linux/UNIX, Red Hat Enterprise Linux , SUSE Linux , Windows , Linux/UNIX (Amazon VPC) , Red Hat Enterprise Linux (Amazon VPC) , SUSE Linux (Amazon VPC) , Windows (Amazon VPC)).
list(string)
"Linux/UNIX"
no
custom_price_modifier
Modifier for getting custom prices. Must be between 1 and 2. Values greater than 1.7 will often not make sense. Because it will be equal or greater than on-demand price.
number
1.05
no
normalization_modifier
Modifier for price normalization (rounded up / ceil). Helps to avoid small price fluctuations. Must be 10, 100, 1000 or 10000.
number
1000
no
Outputs
Name
Description
spot_price_current_max
Maximum current Spot Price, which allows to run all Instance Types in all AZ. Maximum stability.
spot_price_current_max_mod
Modified maximum current Spot Price. (multiplied by the custom_price_modifier). Additional stability on rare runs of terraform apply.
spot_price_current_min
Minimum current Spot Price, which allows to run at least one Instance Type in at least one AZ. Lowest price.
spot_price_current_min_mod
Modified minimum current Spot Price. (multiplied by the custom_price_modifier). Additional stability on rare runs of terraform apply.
spot_price_current_optimal
Optimal current Spot Price, which allows to run at least one Instance Type in all AZ. Balance between stability and costs.
spot_price_current_optimal_mod
Modified optimal current Spot Price. (multiplied by the custom_price_modifier). Additional stability on rare runs of terraform apply.