timoa / terraform-oci-vscode-server

Terraform project that deploys VSCode Server on Oracle Cloud Infrastructure (free tier) and protect the access with Cloudflare Zero Trust (optional) or an SSH tunnel
https://timoa.com
Apache License 2.0
26 stars 1 forks source link

Create a Github Workflow with scheduled to recreate the instance when deleted by OCI #17

Open timoa opened 2 years ago

timoa commented 2 years ago

Currently, we get great performance on the instance, but since it is preemptible, the instance gets deleted by Oracle Cloud when they need it.

To avoid having VScode unavailable when we need it, we need to run Terraform on a schedule to recreate the instance (and the Cloudflare Access Tunnel) when it finds that it has been deleted.