DEV Community

loading...
Cover image for I made a tool to automatically remove old versions in App Engine 完

I made a tool to automatically remove old versions in App Engine 完

santima10 profile image Santiago M.A. 1 min read

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!

GitHub logo SantiMA10 / app-engine-version-cleaner

完 Keep your App Engine versions clean and tidy

App Engine version cleaner

Keep your App Engine versions clean and tidy.

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

  1. Click the deploy button:

Run on Google Cloud

  1. Give the Cloud Run service the App Engine Admin role.

  2. 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

Discussion (0)

Forem Open with the Forem app