civo terraform boilerplates
This commit is contained in:
14
terraform/civo/ssh_key.tf
Normal file
14
terraform/civo/ssh_key.tf
Normal file
@@ -0,0 +1,14 @@
|
||||
# CIVO SSH Keys
|
||||
# ---
|
||||
# Query or Create SSH Keys to authenticate to Servers on CIVO
|
||||
|
||||
# Query existing CIVO SSH Key
|
||||
data "civo_ssh_key" "your-ssh-key" {
|
||||
name = "your-ssh-key-name"
|
||||
}
|
||||
|
||||
# Create new SSH Key
|
||||
resource "civo_ssh_key" "your-ssh-key"{
|
||||
name = "your-ssh-key-name"
|
||||
public_key = file("~/.ssh/id_rsa.pub")
|
||||
}
|
||||
Reference in New Issue
Block a user