Add monitoring to droplets

This commit is contained in:
jdormit 2024-10-25 00:29:02 -04:00
parent 90ee3a6d01
commit 56ecc25c4b
2 changed files with 13 additions and 6 deletions

View File

@ -45,6 +45,12 @@ variable "tags" {
default = ["terraform"]
}
variable "monitoring" {
description = "Whether to enable droplet monitoring"
type = bool
default = true
}
output "droplet_id" {
description = "Droplet ID"
value = digitalocean_droplet.droplet.id

View File

@ -37,6 +37,7 @@ resource "digitalocean_droplet" "droplet" {
size = var.droplet_size
backups = var.backups
tags = var.tags
monitoring = var.monitoring
ssh_keys = [
data.terraform_remote_state.do_ssh_keys.outputs.jdormit_laptop_ssh_key_id,
data.terraform_remote_state.do_ssh_keys.outputs.jdormit_macbook_ssh_key_id,