Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: Improve SSH key message
  • Loading branch information
mafredri committed May 27, 2022
commit a075df303161865658302b6cc2aee86d0a57389a
9 changes: 8 additions & 1 deletion examples/do-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,18 @@ variable "step3_do_admin_ssh_key" {
description = <<-EOF
Enter admin SSH key ID (some Droplet images require an SSH key to be set):

Note: Leaving this as zero will break Fedora images and notify root passwords via email.
Can be set to zero.

Note: Setting this to zero will break Fedora images and notify root passwords via email.

$ doctl compute ssh-key list
EOF
sensitive = true

validation {
condition = var.step3_do_admin_ssh_key >= 0
error_message = "Invalid Digital Ocean SSH key ID, a number is required."
}
}

variable "droplet_image" {
Expand Down