From 78dd4f3cc9d408df69fac270860b283e310fe379 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 4 Feb 2024 13:22:02 +0100 Subject: digitalocean: add commands to list resource types --- digitalocean/server/variables.tf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'digitalocean/server') diff --git a/digitalocean/server/variables.tf b/digitalocean/server/variables.tf index 4912b78..6f3881f 100644 --- a/digitalocean/server/variables.tf +++ b/digitalocean/server/variables.tf @@ -1,5 +1,7 @@ variable "region" { type = string + # Get the full list, along with available droplet sizes: + # curl -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/regions" | jq . } variable "project_id" { type = string @@ -33,10 +35,14 @@ variable "ssh_port" { variable "image" { type = string default = "debian-12-x64" + # Get the full list: + # curl -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/images?type=distribution" | jq . } variable "size" { type = string default = "s-1vcpu-2gb" + # Get the full list: + # curl -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/sizes" | jq . } variable "alert_cpu_enable" { -- cgit v1.2.3