diff options
author | Egor Tensin <egor@tensin.name> | 2024-02-04 13:22:02 +0100 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2024-02-04 13:22:02 +0100 |
commit | 78dd4f3cc9d408df69fac270860b283e310fe379 (patch) | |
tree | 9c86e037316ff182f243386ef8484c260275f628 | |
parent | digitalocean/server: refactoring (diff) | |
download | infra-terraform-78dd4f3cc9d408df69fac270860b283e310fe379.tar.gz infra-terraform-78dd4f3cc9d408df69fac270860b283e310fe379.zip |
digitalocean: add commands to list resource typesv1.1.1
-rw-r--r-- | digitalocean/data_volume/variables.tf | 2 | ||||
-rw-r--r-- | digitalocean/server/variables.tf | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/digitalocean/data_volume/variables.tf b/digitalocean/data_volume/variables.tf index 2d96a42..3c019ca 100644 --- a/digitalocean/data_volume/variables.tf +++ b/digitalocean/data_volume/variables.tf @@ -1,5 +1,7 @@ variable "region" { type = string + # Get the full list: + # curl -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/regions" | jq . } variable "project_id" { type = string 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" { |