Report this

What is the reason for this report?

How would you automate the creation and destruction of droplets?

Posted on April 2, 2018

Connected to this question: https://www.digitalocean.com/community/questions/can-you-make-an-erlang-cluster-with-digitalocean-droplets

How would you automate the create and destruction of droplets? Every time one is created they automatically have certain packages installed, perhaps using packer, and then get added to an erlang cluster. How might I go about all of this?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You can use a tool such as doctlhttps://github.com/digitalocean/doctl and some shell scripts

Another solution is to use Hashicorp’s Terraform - https://www.digitalocean.com/community/tutorials/how-to-use-terraform-with-digitalocean

We use our own automation platform, Tines, for management of our Digital Ocean Droplet automation. We create/delete droplets, add/remove tags, manage DNS and more. It works great! We wrote about how we do it in the below blog post. If you’d like to know more I’m happy to talj through the details - feel free to send me a DM.

https://tines.io/blog/automating-trial-creation/

Using the API.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.