ssh_key.tf 321 B

1234567891011121314
  1. # CIVO SSH Keys
  2. # ---
  3. # Query or Create SSH Keys to authenticate to Servers on CIVO
  4. # Query existing CIVO SSH Key
  5. data "civo_ssh_key" "your-ssh-key" {
  6. name = "your-ssh-key-name"
  7. }
  8. # Create new SSH Key
  9. resource "civo_ssh_key" "your-ssh-key"{
  10. name = "your-ssh-key-name"
  11. public_key = file("~/.ssh/id_rsa.pub")
  12. }