bonclay7 / aws-amicleaner

Cleanup your old unused ami and related snapshots
MIT License
362 stars 132 forks source link

Error to retrieve AMIs #109

Open actitud2020 opened 4 years ago

actitud2020 commented 4 years ago

Hello, I found this bug. I'm guessing it's because there are too many (?)

Retrieving AMIs to clean ... Traceback (most recent call last): File "/home/alex/.local/bin/amicleaner", line 8, in sys.exit(main()) File "/home/alex/.local/lib/python2.7/site-packages/amicleaner/cli.py", line 195, in main app.run_cli() File "/home/alex/.local/lib/python2.7/site-packages/amicleaner/cli.py", line 165, in run_cli candidates = self.prepare_candidates() File "/home/alex/.local/lib/python2.7/site-packages/amicleaner/cli.py", line 66, in prepare_candidates candidates_amis = candidates_amis or self.fetch_candidates() File "/home/alex/.local/lib/python2.7/site-packages/amicleaner/cli.py", line 53, in fetch_candidates excluded_amis += f.fetch_zeroed_asg() File "/home/alex/.local/lib/python2.7/site-packages/amicleaner/fetch.py", line 71, in fetch_zeroed_asg LaunchConfigurationNames=zeroed_lcs File "/home/alex/.local/lib/python2.7/site-packages/botocore/client.py", line 316, in _api_call return self._make_api_call(operation_name, kwargs) File "/home/alex/.local/lib/python2.7/site-packages/botocore/client.py", line 599, in _make_api_call api_params, operation_model, context=request_context) File "/home/alex/.local/lib/python2.7/site-packages/botocore/client.py", line 647, in _convert_to_request_dict api_params, operation_model) File "/home/alex/.local/lib/python2.7/site-packages/botocore/validate.py", line 297, in serialize_to_request raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid length for parameter LaunchConfigurationNames[11], value: 0, valid range: 1-inf Invalid length for parameter LaunchConfigurationNames[12], value: 0, valid range: 1-inf Invalid length for parameter LaunchConfigurationNames[13], value: 0, valid range: 1-inf

Thanks, Alex.