epsagon / lambda-cost-calculator

Forecast Lambda functions costs 💰
https://epsagon.com/blog/how-much-does-aws-lambda-cost/
MIT License
105 stars 14 forks source link

Not able to run #6

Closed eindiainfohub closed 3 years ago

eindiainfohub commented 4 years ago

PS C:\Users\Jack\Desktop\Project\Yannick\test1\lambda-cost-calculator> python lambda_cost_calculator.py N/A% (0 of 20) | | Elapsed Time: 0:00:00 ETA: --:--:--Traceback (most recent call last): File "C:\Users\Jack\Desktop\Project\Yannick\test1\lambda-cost-calculator\lambda_cost_calculator.py", line 248, in print_lambda_cost(arguments) File "C:\Users\Jack\Desktop\Project\Yannick\test1\lambda-cost-calculator\lambda_cost_calculator.py", line 131, in print_lambda_cost response = lambda_client.list_functions() File "C:\Python39\lib\site-packages\botocore\client.py", line 357, in _api_call return self._make_api_call(operation_name, kwargs) File "C:\Python39\lib\site-packages\botocore\client.py", line 676, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the ListFunctions operation: The security token included in the request is invalid.

eindiainfohub commented 4 years ago

python lambda_cost_calculator.py --token-key-id --token-secret

same error with this command also.

gonzariosm commented 8 months ago

I had the same issue, this is because probably the token can read one region, so you can add --regions us-east-1 to run the scan just in that region