acos
acos
is an interactive CLI tool to retrieve and show your AWS costs 💸
Prerequisites
acos
requires the below AWS IAM permissions to retrieve cost related data.
Usage
$ go run ./cmd/acos
? Select accounts: 567890123456 - my-prod, 123456789012 - my-sandbox
+--------------+--------------+----------------+------------------+----------------+
| ACCOUNT ID | ACCOUNT NAME | THIS MONTH ($) | VS YESTERDAY ($) | LAST MONTH ($) |
+--------------+--------------+----------------+------------------+----------------+
| 567890123456 | my-prod | 5820.334869 | + 324.526062 | 10765.384186 |
| 123456789012 | my-sandbox | 0.038331 | + 0.002255 | 0.127884 |
+--------------+--------------+----------------+------------------+----------------+
| TOTAL | 5820.373201 | + 324.528317 | 10765.512070 |
+--------------+--------------+----------------+------------------+----------------+
As of 2022-09-18.
Contribution
- Fork (https://github.com/toricls/acos/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the main branch
- Create a new Pull Request (use conventional commits for the title please)
Licence
Distributed under the Apache-2.0 license.
Author
Footnotes
- . You may also need beforehand to activate IAM Access to the billing console here using the root user credentials. ↩
-
acos
falls back to (1) sts:GetCallerIdentity and (2) iam:ListAccountAliases to retrieve your AWS account ID and alias, in caseorganizations:ListAccounts
fails. This should happen when the AWS account you’re accessing viaacos
is not part of an AWS Organization’s organization and/or you don’t have enough permissions to use the API. ↩