![]() ![]() Licenseĭistributed under the MIT license. Python 3.7 is tested, lower 3x versions will probably work though. Users with python<2.7.9 won't be able to run the code if requests isn't installed (which is listed in requirements.txt) To install all requirements it's best to use aws-emr-cost-calculator cluster -cluster_id=Īuthentication to AWS API is done using credentials of AWS CLI which are configured by executing.Get the cost of an EMR cluster given the cluster id.aws-emr-cost-calculator total -created_after= -created_before=.Get the total cost of an EMR workflow for a given period of days.This module is using docopt to parse command line arguments. In case spot instances were used, the price is retrieved using the AWS EC2 API. OnDemand instance prices are retrieved using the AWS pricing API. However, this method doesn't return any information about the Task nodes of a cluster, and whether or not spot instances were used. The simple way to do that would be to use the information given by the JobFLow method of the boto.emr module. Given that Amazon doesn't provide a straightforward solution to calculate the cost of an EMR workflow, this module aims to calculate the cost of an EMR workflow given a period of days, or the cost of a single cluster given the cluster id. If a cluster is still running, costs incurred up to current time are displayed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |