Giter Site home page Giter Site logo

Comments (8)

Mattnmoore avatar Mattnmoore commented on September 24, 2024 2

#87 fixes the issue for me

from aws-amicleaner.

talset avatar talset commented on September 24, 2024

Same issue, Im using LaunchTemplate with ASG

Retrieving AMIs to clean ...
Traceback (most recent call last):
  File "/usr/bin/amicleaner", line 11, in <module>
    load_entry_point('aws-amicleaner', 'console_scripts', 'amicleaner')()
  File "/aws-amicleaner/amicleaner/cli.py", line 195, in main
    app.run_cli()
  File "/aws-amicleaner/amicleaner/cli.py", line 165, in run_cli
    candidates = self.prepare_candidates()
  File "/aws-amicleaner/amicleaner/cli.py", line 66, in prepare_candidates
    candidates_amis = candidates_amis or self.fetch_candidates()
  File "/aws-amicleaner/amicleaner/cli.py", line 53, in fetch_candidates
    excluded_amis += f.fetch_zeroed_asg()
  File "/aws-amicleaner/amicleaner/fetch.py", line 73, in fetch_zeroed_asg
    LaunchConfigurationNames=zeroed_lcs
  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 634, in _make_api_call
    api_params, operation_model, context=request_context)
  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 682, in _convert_to_request_dict
    api_params, operation_model)
  File "/usr/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[0], value: 0, valid range: 1-inf
Invalid length for parameter LaunchConfigurationNames[2], value: 0, valid range: 1-inf

from aws-amicleaner.

sc250024 avatar sc250024 commented on September 24, 2024

@Mattnmoore I tried forking this repo, and implementing the changes in #87, but it didn't work. Do you have a working fork?

from aws-amicleaner.

codingtony avatar codingtony commented on September 24, 2024

Same issue here

from aws-amicleaner.

leetcarey avatar leetcarey commented on September 24, 2024

Having the same issue. Anyone able to implement the fix or an alternative

from aws-amicleaner.

GMartinez-Sisti avatar GMartinez-Sisti commented on September 24, 2024

The #115 appears to fix it, but it looks like this project is abandoned so it might never get merged.

from aws-amicleaner.

leetcarey avatar leetcarey commented on September 24, 2024

Yup, installing from source via https://github.com/janus-anderwelt/aws-amicleaner fixed my issue :-)

from aws-amicleaner.

arturrez avatar arturrez commented on September 24, 2024

can confirm that fix ☝️ works. 🙌

from aws-amicleaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.