Apply for invite to IaCP

Cost Estimation

Scalr IaCP provides cost estimation during a Terraform plan for resources that are being deployed. The cost estimation data is displayed in the Scalr UI and in CLI output.

../_images/runs_cost.png

The data provided by cost estimation is also available for use in policies implemented in Open Policy Agent (OPA).

Note

Cost estimation is currently only provided for a limited number of resources in AWS and GCP. We are adding new resources for these and other clouds, such as Azure, with each release. Please bookmark this page to stay updated with the changes.

Below are lists of resources for which cost estimation is currently implemented. Each list covers one logical grouping for each cloud provider and includes information on the factors affecting cost.

Warning

IaCP does not currently estimate cost for all resources and does not include estimates for variable items such as network bandwidth, disk I/O’s etc. You will very likely incur more cost than is shown in the cost estimates provided by IaCP.

AWS Resources

EC2

aws_instance

Cost Factors

Notes

Location

InstanceType

TermType

Currently only On-Demand instances

Usagetype

BoxUsage

OperatingSystem

Windows or Linux

LicenseModel

Currently only instances that do not require a license are taken into account

PreInstalledSw

Currently any additional software price not taken into account

aws_ebs_volume

Cost Factors

Notes

Location

Based on availability zone

Volume size

Volume type

Magnetic, Cold HDD, General Purpose, Provisioned IOPS, Throughput Optimized HDD

TermType

Currently only On-Demand volumes


RDS

aws_db_instance

Cost Factors

Notes

Location

Instance type

Instance class

TermType

Currently only On-Demand instances

Engine

mysql, mariadb, postgresql, sql server, oracle

Storage

Estimate for classic RDS database instances only. Aurora does not provide information about storage.
Factors: Size, Type, Provisioned IOPS (for io1 type)

aws_rds_cluster / aws_rds_global_cluster

Cost Factors

Notes

aws_db_instance

Estimate based on cost of the number aws_db_instance in the cluster. For Aurora cluster this includes cost for both primary and secondary region.

aws_db_snapshot

Cost Factors

Notes

Location

Taken from aws_db_instance

Storage Size

Taken from aws_db_instance

Note

Database cluster snapshot price cannot be estimated, because linked RDS cluster size not known at the time of snapshot creation


EKS

aws_eks_cluster

  • List price of EKS control plane. No other factors

aws_autoscaling_group

Cost Factors

Notes

Node cost

See aws_instance. Cost calculated based on instances specified in launch_configuration, launch_template, or mixed_instances_policy and multiplies.

Capacity

if set then aws_autoscaling_group.desired_capacity, otherwise default capacity taken from aws_autoscaling_group.min_size

GCP Resources

Compute Instance

google_compute_instance

Cost Factors

Notes

Location

MachineType

Usagetype

Usagetype

BoxUsage

ScratchDisk/BootDisk

Image

PreInstalledSw

Currently any additional software price not taken into account


Storage

google_compute_disk

Cost Factors

Notes

Location

DiskType

DiskSize

Image


Container Clusters

google_container_cluster

Cost Factors

Notes

NodeCount

NodeSettings

google_container_node_pool

Cost Factors

Notes

NodeInstanceSettings

NodeDiskSettings

NodeCount


Database

google_sql_database_instance

Cost Factors

Notes

InstanceSettings

DiskSettings

IpConfiguration

BackupConfiguration