terraform update2

This commit is contained in:
xcad2k
2021-10-08 15:05:21 +02:00
parent a5f3432802
commit 338df07e6a
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
data "civo_ssh_key" "sshkey" {
name = "your-ssh-key-name"
}
resource "civo_instance" "server" {
hostname = "servername"
size = "g3.small"
disk_image = "ubuntu-focal"
# (optional):
# ---
# tags = ["python", "nginx"]
# notes = "this is a note for the server"
# initial_user = "user"
# sshkey_id = data.civo_ssh_key.sshkey.id
}