# README
awsri
Instalation
% go install github.com/takaishi/awsri@latest
Usage
% awsri --service=rds --db-instance-class=db.t4g.large --product-description=mysql --multi-az=true
| Duration (Year) | Offering Type | One Time Payment (USD) | Usage Charges (USD, Monthly) |
|-----------------|-----------------|------------------------|------------------------------|
| 1 | No Upfront | 0 | 134 |
| 1 | Partial Upfront | 781 | 64 |
| 1 | All Upfront | 1517 | 0 |
| 3 | No Upfront | N/A | N/A |
| 3 | Partial Upfront | 1630 | 45 |
| 3 | All Upfront | 3192 | 0 |
# awsri --service=elasticache --db-instance-class=db.t4g.large --product-description=redis
| Duration (Year) | Offering Type | One Time Payment (USD) | Usage Charges (USD, Monthly) |
|-----------------|-----------------|------------------------|------------------------------|
| 1 | No Upfront | 0 | 73 |
| 1 | Partial Upfront | 4460 | 367 |
| 1 | All Upfront | 28189 | 0 |
| 3 | No Upfront | 0 | 1328 |
| 3 | Partial Upfront | 2756 | 76 |
| 3 | All Upfront | 44584 | 0 |
# Packages
No description provided by the author
# Functions
CalculateEffectiveMonthly calculates the effective yearly cost Despite the name, this now returns yearly cost.
CalculateSavings calculates the yearly savings amount and percentage.
No description provided by the author
DurationToMonths converts years to months.
FormatDuration formats the duration as a string.
No description provided by the author
No description provided by the author
NewTableRenderer creates a new TableRenderer.
No description provided by the author
# Variables
No description provided by the author
Common table headers.
Common offering types and durations.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PricingData represents common pricing data.
No description provided by the author
No description provided by the author
TableRenderer handles the common table rendering functionality.