Skip to content

Commit

Permalink
add costings
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed May 24, 2021
1 parent 39691ba commit 4d19148
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

Expand Down
23 changes: 22 additions & 1 deletion example/examplea/infracost-usage.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4d19148

Please sign in to comment.