Tutorials
1. Setup eraXplor for your AWS Account
This tutorial walks you through setting up eraXplor-aws
to start exporting your AWS cost data automatically.
Prerequisites
- AWS CLI
- Configure AWS Profile
-
Check that by:
python3 --version
Steps
- Install eraXplor:
pip install eraXplor
- Run eraXplor:
eraXplor-aws
eraXplor-aws <--start-date [yyyy-MM-DD]> <--end-date [yyyy-MM-DD]> \
<--profile [PROFILE-NAME]> \
<--groupby [LINKED_ACCOUNT | SERVICE | PURCHASE_TYPE | USAGE_TYPE | LINKED_ACCOUNT-With-SERVICE | LINKED_ACCOUNT-With-PURCHASE_TYPE | LINKED_ACCOUNT-With-USAGE_TYPE]> \
<--out [file.csv]>
<--granularity [DAILY | MONTHLY]>
For Windows/PowerShell users restart your terminal, and you may need to use the following command:
python3 -m eraXplor-aws
# Or
python -m eraXplor-aws
# to avoid using this command, apend the eraXplor to your paths.
# Normaly its under: C:\Users\<YourUser>\AppData\Local\Programs\Python\Python<version>\Scripts\
Note
Ensure you run the command in a place you have sufficient permission to replace file. The eraXport tool sorting cost reult into a CSV file, by default The CSV will replace for next run.
Argument Reference
--start-date
or-s
: (Optional) Default value set as six months before.--end-date
or-e
: (Optional) Default value set as Today date.--profile
or-p
: (Optional) Default value set as default.--groupby
or-g
: (Optional) Default value set asLINKED_ACCOUNT
. The available options are (LINKED_ACCOUNT
,SERVICE
,PURCHASE_TYPE
,USAGE_TYPE
,LINKED_ACCOUNT-With-SERVICE
,LINKED_ACCOUNT-With-PURCHASE_TYPE
,LINKED_ACCOUNT-With-USAGE_TYPE
)--out
or-o
: (Optional) Default value set ascost_repot.csv
.--granularity
or-G
: (Optional) Default value set asMONTHLY
. The available options are (MONTHLY
,DAILY
)