Best practice clean up to add more descriptions and stricter type cases on variables.

This commit is contained in:
2026-08-09 19:36:59 -05:00
parent a9b20fa9ae
commit 66d4f2b775
26 changed files with 55 additions and 38 deletions
+4 -4
View File
@@ -1,23 +1,23 @@
resource "digitalocean_droplet" "this" {
backups = "true"
backups = true
backup_policy {
plan = var.backup_policy_plan
weekday = var.backup_policy_weekday
hour = var.backup_policy_hour
}
image = var.image_name
ipv6 = "true"
ipv6 = true
lifecycle {
ignore_changes = [
image,
]
}
monitoring = "true"
monitoring = true
name = "${var.host_name}.${var.domain_name}"
region = var.region
ssh_keys = var.ssh_keys
size = var.size
tags = var.tags
vpc_uuid = var.use_vpc > 0 ? data.digitalocean_vpc.this[0].id : null
vpc_uuid = var.use_vpc ? data.digitalocean_vpc.this[0].id : null
}