AWS Cot Hub
Development Setup
-
Open Terminal Window
-
Clone repository
git clone https://github.com/rajasoun/aws-cost-hub cd aws-cost-hub code .
-
Click the Green Button as shown in the image below and select Open Folder in Container… command and select the local folder.
-
Grab a Coffee ☕️. Based on your internet speed might take 5 mins to 7 mins with ~50 mbps speed
-
Open Terminal in visual studio code and run
/workspaces/tests/system/e2e_tests.sh
for automated test of the setup -
Run
ci-cd config-prerequisite
to configure gpg, pass and aws-vault for AWS Programatic access via API
Configure gpg, pass and aws-vault
-
Generate a new GPG private key. (Optional if you already have a GPG key setup and trusted on the system)
Note: If you set a passphrase, you will be prompted to enter it.
$ generate_gpg_keys
-
Initialize the password-storage DB using the GPG
public
key ID or the associated email$ gpg2 --list-keys $ init_pass_store #similar to pass init <email_id> got from previous command
-
Configure aws-vault through wrapper
$ aws-env
aws-identity
Get Identity by account
$ aws-whoami <aws_profile>
AWS Consolidated Bill for Current month using aws-vault
Get Identity by account
$ /workspaces/tools/all_bills.sh