mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-01 12:45:00 +01:00
15 lines
321 B
Terraform
15 lines
321 B
Terraform
|
# 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")
|
||
|
}
|