From 4d191487c5392c0508d48146564a899223dadcd1 Mon Sep 17 00:00:00 2001 From: James Woolfenden Date: Mon, 24 May 2021 15:52:17 +0100 Subject: [PATCH] add costings --- README.md | 36 ++++++++++++++++++++++++++++ example/examplea/infracost-usage.yml | 23 +++++++++++++++++- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c6b604f..a01d2cc 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,42 @@ terraform apply .... ``` +## Costs + +```text +monthly cost estimate + +Project: . + + Name Monthly Qty Unit Monthly Cost + + module.cassandra.aws_instance.cassandra[0] + ├─ Instance usage (Linux/UNIX, on-demand, t3.micro) 730 hours $8.61 + ├─ EC2 detailed monitoring 7 metrics $2.10 + ├─ CPU credits 0 vCPU-hours $0.00 + └─ root_block_device + ├─ Storage (magnetic) 100 GB-months $5.80 + └─ I/O requests Cost depends on usage: $0.06 per 1M request + + module.cassandra.aws_instance.cassandra[1] + ├─ Instance usage (Linux/UNIX, on-demand, t3.micro) 730 hours $8.61 + ├─ EC2 detailed monitoring 7 metrics $2.10 + ├─ CPU credits 0 vCPU-hours $0.00 + └─ root_block_device + ├─ Storage (magnetic) 100 GB-months $5.80 + └─ I/O requests Cost depends on usage: $0.06 per 1M request + + module.cassandra.aws_instance.cassandra[2] + ├─ Instance usage (Linux/UNIX, on-demand, t3.micro) 730 hours $8.61 + ├─ EC2 detailed monitoring 7 metrics $2.10 + ├─ CPU credits 0 vCPU-hours $0.00 + └─ root_block_device + ├─ Storage (magnetic) 100 GB-months $5.80 + └─ I/O requests Cost depends on usage: $0.06 per 1M request + + PROJECT TOTAL $49.54 +``` + ## Requirements diff --git a/example/examplea/infracost-usage.yml b/example/examplea/infracost-usage.yml index a7acd87..435f53e 100644 --- a/example/examplea/infracost-usage.yml +++ b/example/examplea/infracost-usage.yml @@ -1,2 +1,23 @@ version: 0.1 -resource_usage: {} +resource_usage: + module.cassandra.aws_instance.cassandra[0]: + monthly_cpu_credit_hrs: 0 + operating_system: linux + reserved_instance_payment_option: all_upfront + reserved_instance_term: 1_year + reserved_instance_type: standard + vcpu_count: 0 + module.cassandra.aws_instance.cassandra[1]: + monthly_cpu_credit_hrs: 0 + operating_system: linux + reserved_instance_payment_option: all_upfront + reserved_instance_term: 1_year + reserved_instance_type: standard + vcpu_count: 0 + module.cassandra.aws_instance.cassandra[2]: + monthly_cpu_credit_hrs: 0 + operating_system: linux + reserved_instance_payment_option: all_upfront + reserved_instance_term: 1_year + reserved_instance_type: standard + vcpu_count: 0