Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

This AWS Lambda fucntion puts datapoinsts fetched by Cost Explorer API to CloudWatch custom metrics.

License

Notifications You must be signed in to change notification settings

mozamimy/ri-utilization-plotter

Repository files navigation

ri-utilization-plotter

This AWS Lambda fucntion puts datapoinsts fetched by Cost Explorer API to CloudWatch custom metrics.

Build and Debug with SAM CLI

Copy event.example.json to evnet.json and template.example.yml to template.yml and edit them for your development environment before follow bellow instructions.

make init # You need this command at first time building
make build
make run

Build for Releasing

make init # You need this command at first time building
make release_build

Customize

This function is designed to be invoked periodically by a CloudWatch Event. You can customize the parameter for Cost Explorer API and metrics' namespace and metric name by configuring input of target configuration of event rules. (See event.example.json)

License

MIT