2021-01-07 16:28:25 +00:00
|
|
|
variable "do_token" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "spaces_access_id" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "spaces_secret_key" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "name" {
|
|
|
|
description = "Droplet name"
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "packer_manifest" {
|
|
|
|
description = "Path to the packer manifest JSON file"
|
|
|
|
type = string
|
|
|
|
default = "../packer/packer-manifest.json"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
description = "Droplet region"
|
|
|
|
type = string
|
|
|
|
default = "nyc1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "droplet_size" {
|
|
|
|
description = "Droplet size descriptor"
|
|
|
|
type = string
|
|
|
|
default = "s-1vcpu-1gb"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "backups" {
|
|
|
|
description = "Whether to enable droplet backups"
|
|
|
|
type = bool
|
|
|
|
default = true
|
|
|
|
}
|
|
|
|
|
2021-01-22 16:42:39 +00:00
|
|
|
variable "tags" {
|
|
|
|
description = "List of tags to be applied to created resources"
|
|
|
|
type = list(string)
|
|
|
|
default = ["terraform"]
|
|
|
|
}
|
|
|
|
|
2024-10-25 04:29:02 +00:00
|
|
|
variable "monitoring" {
|
|
|
|
description = "Whether to enable droplet monitoring"
|
|
|
|
type = bool
|
|
|
|
default = true
|
|
|
|
}
|
|
|
|
|
2021-01-07 16:28:25 +00:00
|
|
|
output "droplet_id" {
|
|
|
|
description = "Droplet ID"
|
|
|
|
value = digitalocean_droplet.droplet.id
|
|
|
|
}
|
|
|
|
|
|
|
|
output "droplet_ip_address" {
|
|
|
|
description = "Droplet IPv4 address"
|
|
|
|
value = digitalocean_droplet.droplet.ipv4_address
|
|
|
|
}
|
|
|
|
|
|
|
|
output "droplet_urn" {
|
|
|
|
description = "Droplet URN"
|
|
|
|
value = digitalocean_droplet.droplet.urn
|
|
|
|
}
|