epsagon / lambda-cost-calculator

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

Added profile and region params #5

Closed PhilWaters closed 4 years ago

PhilWaters commented 4 years ago

This pull request adds --profile and --regions arguments.

The --profile argument allows the script to be run using an AWS profile name instead of specifying the access and secret keys on the command line. It also makes it possible to use credentials with a session token (for example, those generate via AWS SSO).

The --region argument reduces the time taken to run the script when the regions in which functions exist is known.