CloudComputing

Table of Contents

Amazon Web Service (AWS)

Digital Ocean

Lessons learned

How to get the ID of a droplet?

The ID is also included in the URL of the droplet details in the admin website. e.g. https://cloud.digitalocean.com/droplets/<droplet-id>/graphs

How to start a droplet?

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${DIGITAL_OCEAN_TOKEN}" -d '{"type":"power_on"}' "https://api.digitalocean.com/v2/droplets/${KCH_DROPLET}/actions"

https://developers.digitalocean.com/documentation/v2/#power-on-a-droplet

How to stop a droplet?

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${DIGITAL_OCEAN_TOKEN}" -d '{"type":"power_off"}' "https://api.digitalocean.com/v2/droplets/${KCH_DROPLET}/actions"

https://developers.digitalocean.com/documentation/v2/#power-off-a-droplet

Google Compute Engine (GCE)

GitHubImpressum