Skip to content

Commit 048a8fb

Browse files
Updated variables.tf
Added the variable ssh_key_name
1 parent f8cff09 commit 048a8fb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

variables.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ variable "ssh_username" {
2323
type = string
2424
}
2525

26+
variable "ssh_key_name" {
27+
description = "Defines the name for the ssh key"
28+
default = "admin_ssh_key"
29+
type = string
30+
}
31+
2632
resource "hcloud_ssh_key" "admin_ssh_key" {
27-
name = "admin_ssh_key"
33+
name = var.ssh_key_name
2834
public_key = file(var.ssh_public_key)
2935
}
3036

0 commit comments

Comments
 (0)