epsagon / clear-lambda-storage

Removes old versions of Lambda functions
https://epsagon.com/blog/how-to-free-aws-lambda-code-storage-codestorageexceeded/
MIT License
165 stars 44 forks source link

Add aws profile parameter #4

Closed siutsin closed 5 years ago

siutsin commented 5 years ago

Added the --profile to allow to use of profiles other than the default one to suit my use case.

I am purposely not having a default profile as I work in multiple environments and always added the --profile some_aws_profile to avoid executing commands in somewhere not intended.

And thanks for the tool, it helps me to save tons of space:

----------
Deleted 634 versions from 9 functions
Freed 1168 MBs
ranrib commented 5 years ago

Awesome! Thanks @siutsin