| get_ec2_instance_price | R Documentation |
Looks up the current AWS price for an instance type. On-Demand rates come from the AWS Pricing API and Spot rates from EC2 spot-price history; both are cached per session. Any failure (offline, missing perms, unknown type) falls back to a built-in static rate, so cost estimates always return a number.
get_ec2_instance_price(instance_type, use_spot = FALSE, region = NULL)
instance_type |
EC2 instance type (e.g., "c7g.xlarge") |
use_spot |
Whether to use spot pricing |
region |
AWS region (default: from config or "us-east-1") |
Price per hour in USD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.