Add monitoring to droplets
This commit is contained in:
parent
90ee3a6d01
commit
56ecc25c4b
@ -45,6 +45,12 @@ variable "tags" {
|
|||||||
default = ["terraform"]
|
default = ["terraform"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "monitoring" {
|
||||||
|
description = "Whether to enable droplet monitoring"
|
||||||
|
type = bool
|
||||||
|
default = true
|
||||||
|
}
|
||||||
|
|
||||||
output "droplet_id" {
|
output "droplet_id" {
|
||||||
description = "Droplet ID"
|
description = "Droplet ID"
|
||||||
value = digitalocean_droplet.droplet.id
|
value = digitalocean_droplet.droplet.id
|
||||||
|
@ -31,12 +31,13 @@ locals {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "digitalocean_droplet" "droplet" {
|
resource "digitalocean_droplet" "droplet" {
|
||||||
name = var.name
|
name = var.name
|
||||||
image = local.packer_image
|
image = local.packer_image
|
||||||
region = var.region
|
region = var.region
|
||||||
size = var.droplet_size
|
size = var.droplet_size
|
||||||
backups = var.backups
|
backups = var.backups
|
||||||
tags = var.tags
|
tags = var.tags
|
||||||
|
monitoring = var.monitoring
|
||||||
ssh_keys = [
|
ssh_keys = [
|
||||||
data.terraform_remote_state.do_ssh_keys.outputs.jdormit_laptop_ssh_key_id,
|
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,
|
data.terraform_remote_state.do_ssh_keys.outputs.jdormit_macbook_ssh_key_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user