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!
SantiMA10 / app-engine-version-cleaner
🧹 Keep your App Engine versions clean and tidy
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.
Setup
- Click the deploy button:
-
Give the Cloud Run service the
App Engine Admin
role. -
Create a new
google.appengine.v1.Versions.CreateVersion
trigger for the Cloud Run service.During this configuration you can choose which
App Engine
services you want to be affected by this "Cleaner".
Cover photo by Callum Hill on Unsplash
Top comments (0)