Follow these steps to install and configure the spread-gce-cleaner snap. This snap will run every 15 minutes executing the spread garbage collection.
Steps:
- sudo snap install spread-gce-cleaner --beta
- Download https://drive.google.com/file/d/1mMoHArIlZAn-kcNYfU0eensitOAglw78/view?usp=sharing, uncompress it on $SNAP_DATA
- Copy the sa.json or application_default_credentials.json required to list and delete instances to $SNAP_DATA
Spread will be automatically downloaded to $SNAP_DATA, when a new spread is needed, just delete the spread binary and it will be downloaded during the next execution.