Code Monkey home page Code Monkey logo

Comments (7)

jackivanov avatar jackivanov commented on August 26, 2024

According to your suggestion, there is only function to shutdown a VM, but not to destroy. As I know DigitalOcean continue to charge the money even a VM is down. So, there is no way to destruct a VM without a query to the API. But requests to the API from a VM is too insecure

from algo.

dguido avatar dguido commented on August 26, 2024

Darn, yes you are right. This might work on other providers but it does not work on Digital Ocean.

from algo.

defunctio avatar defunctio commented on August 26, 2024

This can integrated easily on providers such as EC2 as instances can be set to terminate on shutdown during creation.

from algo.

dguido avatar dguido commented on August 26, 2024

We could add a shell script to cron with the user's DigitalOcean token embedded and have it curl out the appropriate call to the API to terminate the instance... but that requires storing an API key in the cloud :-(

from algo.

dguido avatar dguido commented on August 26, 2024

For reasons why tearing down your infrastructure on a regular basis is important, see also "ShadowBrokers."

from algo.

finid avatar finid commented on August 26, 2024

If Docker Machine is used to provision the server, you can easily automate stop/removing it form your laptop or desktop. The only thing with this, is you'll have Docker installed on it, though I don't think that's much of a drawback.

from algo.

tonymet avatar tonymet commented on August 26, 2024

if deployed to AWS , this could be done with (a) lambda scheduled cron and (b) cloudformation delete-stack

from algo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.