Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing "--function-names" argument on cli #33

Open
GaahNoel opened this issue Jul 26, 2024 · 1 comment
Open

Missing "--function-names" argument on cli #33

GaahNoel opened this issue Jul 26, 2024 · 1 comment

Comments

@GaahNoel
Copy link

GaahNoel commented Jul 26, 2024

Description

Hello! 😄

I'm trying to run the cli command clear_lambda_storage with the argument --function-name and the cli cannot handle it.
Clonning the repository and running locally, the code accepts this argument.

It's possible to add the support for this argument to the cli? I'm trying to use this function on my github actions pipeline and will be much more easy using direclty the cli instead of pushing the code on so many repositories that i need. 😅

Examples

Command that i'm trying to use:
clear_lambda_storage --num-to-keep 3 --function-names=function-name --regions=us-east-1

Command that i successfully used running the code locally:
python clear_lambda_storage.py --num-to-keep 3 --function-names=function-name --regions=us-east-1

Current supported arguments on cli:

options:
  -h, --help            show this help message and exit
  --token-key-id token-key-id
                        AWS access key id. Must provide AWS secret access key as well (default: from local configuration).
  --token-secret token-secret
                        AWS secret access key. Must provide AWS access key id as well (default: from local configuration.
  --profile profile     AWS profile. Optional (default: "default" from local configuration).
  --regions regions [regions ...]
                        AWS region to look for old Lambda versions
  --num-to-keep num-to-keep
                        Number of latest versions to keep. Older versions will be deleted. Optional (default: 2).
@ranrib
Copy link
Member

ranrib commented Jul 28, 2024

Hi @GaahNoel you are welcome to contribute this feature in a PR and I’ll approve that. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants