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

  1. Fork (https://github.com/toricls/acos/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the main branch
  5. Create a new Pull Request (use conventional commits for the title please)

Licence

Distributed under the Apache-2.0 license.

Author

Tori

Footnotes

    . You may also need beforehand to activate IAM Access to the billing console here using the root user credentials. ↩

  1. acos falls back to (1) sts:GetCallerIdentity and (2) iam:ListAccountAliases to retrieve your AWS account ID and alias, in case organizations:ListAccounts fails. This should happen when the AWS account you’re accessing via acos is not part of an AWS Organization’s organization and/or you don’t have enough permissions to use the API. ↩

GitHub

View Github