puemos / aws-lambda-ecr-cleaner Goto Github PK
View Code? Open in Web Editor NEWAn AWS Lambda Function to automate ECR cleanup
License: MIT License
An AWS Lambda Function to automate ECR cleanup
License: MIT License
Hi,
many thanks for your project. I use it for last couple of weeks. This is more request for help than bug report....
Since 4th of Jan 2017 your aws-lambda-ecr-cleaner starts failing on error
{"errorMessage":"Cannot read property '0' of undefined","errorType":"TypeError","stackTrace":["/var/task/lib/index.js:152:37","Array.map (native)","/var/task/lib/index.js:149:18","tryCatcher (/var/task/node_modules/bluebird/js/release/util.js:16:23)","Promise._settlePromiseFromHandler (/var/task/node_modules/bluebird/js/release/promise.js:510:31)","Promise._settlePromise (/var/task/node_modules/bluebird/js/release/promise.js:567:18)","Promise._settlePromise0 (/var/task/node_modules/bluebird/js/release/promise.js:612:10)","Promise._settlePromises (/var/task/node_modules/bluebird/js/release/promise.js:691:18)","Promise._fulfill (/var/task/node_modules/bluebird/js/release/promise.js:636:18)","Response.<anonymous> (/var/task/node_modules/bluebird/js/release/nodeback.js:42:21)","Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:355:18)","Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:105:20)","Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:77:10)","Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:668:14)","Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)","AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)"]}
Do you have any idea what could be wrong? I'm not aware of any changes made in code nor in AWS...Do you also use this project? can you try to run it today to see if it works for you or not?
Thanks
Martin
When the number of images is significant, current async-no-wait approach gives AWS API errors due to rate limiting
For inspiration, this package uses trottling
https://github.com/trek10inc/ecr-cleaner
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.