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

fix asg bug #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

janus-anderwelt
Copy link

12:14:42 + AWS_DEFAULT_REGION=eu-central-1 amicleaner --mapping-key tags --mapping-values Application --keep-previous 16 --force-delete --full-report
12:14:44
12:14:44 Default values : ==>
12:14:44 mapping_key : tags
12:14:44 mapping_values : ['Application']
12:14:44 excluded_mapping_values : []
12:14:44 keep_previous : 16
12:14:44 ami_min_days : -1
12:14:44
12:14:44 Retrieving AMIs to clean ...
12:14:44 Traceback (most recent call last):
12:14:44 File "/usr/local/bin/amicleaner", line 8, in
12:14:44 sys.exit(main())
12:14:44 File "/usr/local/lib/python3.9/dist-packages/amicleaner/cli.py", line 195, in main
12:14:44 app.run_cli()
12:14:44 File "/usr/local/lib/python3.9/dist-packages/amicleaner/cli.py", line 165, in run_cli
12:14:44 candidates = self.prepare_candidates()
12:14:44 File "/usr/local/lib/python3.9/dist-packages/amicleaner/cli.py", line 66, in prepare_candidates
12:14:44 candidates_amis = candidates_amis or self.fetch_candidates()
12:14:44 File "/usr/local/lib/python3.9/dist-packages/amicleaner/cli.py", line 53, in fetch_candidates
12:14:44 excluded_amis += f.fetch_zeroed_asg()
12:14:44 File "/usr/local/lib/python3.9/dist-packages/amicleaner/fetch.py", line 70, in fetch_zeroed_asg
12:14:44 resp = self.asg.describe_launch_configurations(
12:14:44 File "/usr/local/lib/python3.9/dist-packages/botocore/client.py", line 514, in _api_call
12:14:44 return self._make_api_call(operation_name, kwargs)
12:14:44 File "/usr/local/lib/python3.9/dist-packages/botocore/client.py", line 901, in _make_api_call
12:14:44 request_dict = self._convert_to_request_dict(
12:14:44 File "/usr/local/lib/python3.9/dist-packages/botocore/client.py", line 962, in _convert_to_request_dict
12:14:44 request_dict = self._serializer.serialize_to_request(
12:14:44 File "/usr/local/lib/python3.9/dist-packages/botocore/validate.py", line 381, in serialize_to_request
12:14:44 raise ParamValidationError(report=report.generate_report())
12:14:44 botocore.exceptions.ParamValidationError: Parameter validation failed:
12:14:44 Invalid length for parameter LaunchConfigurationNames[0], value: 0, valid min length: 1
12:14:44 Invalid length for parameter LaunchConfigurationNames[1], value: 0, valid min length: 1
[Pipeline] }
12:14:44 Failed in branch clean_eucentral

@arturrez
Copy link

can we please merge it ?

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

Successfully merging this pull request may close these issues.

2 participants