If you use App Engine to deploy your applications, you know that you can only deploy 200 versions and then you must remove a few before you can deploy again.
A few weekends ago thanks to the brand new Google Cloud Event trigger for Cloud Run I develop a simple app to remove old versions every time a new deployment is completed.
In the repository, you can find all the necessary steps to get it up and running so you can forget about removing old versions of App Engine 🎉.
Any issue or pull request with improvements is welcomed!
App Engine version cleaner
This service deployable on Cloud Run allows you to automatically delete previous
App Engine versions, it only keeps the new version you deploy and the last one.
- Click the deploy button:
Give the Cloud Run service the
App Engine Adminrole.
Create a new
google.appengine.v1.Versions.CreateVersiontrigger for the Cloud Run service.
During this configuration you can choose which
App Engineservices you want to be affected by this "Cleaner".