The aws-usage-analyzer script will fetch information about your Elasticache clusters and DynamoDB Tables to help find opportunities for optimizations with Momento.
This script is currently intended to be run from an operator laptop with READ only permissions. Specifically you will need following permissions from cloud watch, elasticache, and DynamoDB.
elasticache:DescribeCacheClusters
cloudwatch:GetMetricData
dynamodb:ListTables
dynamodb:DescribeTable
Running the following build step will output a binary artifact to the dist
folder.
make build
After building the script you can run it with the following commands:
chmod +x ./dist/aws-usage-analyzer
AWS_PROFILE=my-profile AWS_REGION=us-west-2 ./dist/aws-usage-analyzer
Running the script will produce an output file named results.csv
with raw data about your workloads needed for
analysis.